Skip to content

Commit d22ef4a

Browse files
committed
some
1 parent c54d5cf commit d22ef4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compass-data-modeling/src/components/diagram-editor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ const DiagramEditor: React.FunctionComponent<{
268268

269269
useEffect(() => {
270270
if (nodes.length === 0) return;
271-
const isInitialState = nodes.every(
271+
const isInitialState = nodes.some(
272272
(node) => isNaN(node.position.x) || isNaN(node.position.y)
273273
);
274274
if (isInitialState) {

0 commit comments

Comments
 (0)