Skip to content

Commit 1730e5e

Browse files
committed
ui-manchette: use statement instead of expression in OperationalPoint
Newer ESLint is annoyed because this is an expression instead of a statement. Signed-off-by: Simon Ser <[email protected]>
1 parent 404f5cf commit 1730e5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui-manchette/src/components/OperationalPoint.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const OperationalPoint = ({
2727
id={id}
2828
ref={opRef}
2929
onClick={() => {
30-
onClick && onClick(id, opRef.current);
30+
if (onClick) onClick(id, opRef.current);
3131
}}
3232
>
3333
<div className="op-position justify-self-start text-end">{positionMmToKm(position)}</div>

0 commit comments

Comments
 (0)