Skip to content

Commit

Permalink
fix(designer): Deleting a scope node brings panel to wrong id (#4726)
Browse files Browse the repository at this point in the history
very small commit
  • Loading branch information
Eric-B-Wu committed Apr 29, 2024
1 parent 4f4e704 commit c0573d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/designer/src/lib/ui/CustomNodes/ScopeCardNode.tsx
Expand Up @@ -177,9 +177,9 @@ const ScopeCardNode = ({ data, targetPosition = Position.Top, sourcePosition = P
}, [dispatch, scopeId]);

const deleteClick = useCallback(() => {
dispatch(setSelectedNodeId(id));
dispatch(setSelectedNodeId(scopeId));
dispatch(setShowDeleteModal(true));
}, [dispatch, id]);
}, [dispatch, scopeId]);

const copyClick = useCallback(() => {
setShowCopyCallout(true);
Expand Down

0 comments on commit c0573d1

Please sign in to comment.