Skip to content

Commit

Permalink
Fix when it disappears when connecting an edge to update to a new node
Browse files Browse the repository at this point in the history
  • Loading branch information
SeonghoJin committed Sep 13, 2021
1 parent b3f102c commit eff3e72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Edges/wrapEdge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export default (EdgeComponent: ComponentType<EdgeProps>) => {
_onEdgeUpdate
);
},
[id, source, target, type, sourceHandleId, targetHandleId, setConnectionNodeId, setPosition, edgeElement]
[id, source, target, type, sourceHandleId, targetHandleId, setConnectionNodeId, setPosition, edgeElement, onConnectEdge]
);

const onEdgeUpdaterSourceMouseDown = useCallback(
Expand Down
2 changes: 1 addition & 1 deletion src/container/EdgeRenderer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const Edge = ({
(connection: Connection) => {
props.onEdgeUpdate?.(edge, connection);
},
[edge]
[edge, props.onEdgeUpdate]
);

if (!sourceNode) {
Expand Down

0 comments on commit eff3e72

Please sign in to comment.