Skip to content

Commit

Permalink
fix printing connections
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaLysiuk committed Feb 19, 2024
1 parent c7315f9 commit 98d6803
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,13 @@ export const LinesDiagram = React.forwardRef<
: RELATION_NODE_MAX_FIELDS,
ignoreAlphaCalculation: true,
},
}).then(({ nodes: positionedNodes, ...positionParams }) => {
props.setViewportParams(positionParams);
setSimulatedNodes(positionedNodes);
setConnections(connections);
});
}).then(
({ nodes: positionedNodes, connections, ...positionParams }) => {
props.setViewportParams(positionParams);
setSimulatedNodes(positionedNodes);
setConnections(connections);
}
);
},
}),
[nodes]
Expand Down

0 comments on commit 98d6803

Please sign in to comment.