Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove the edge when the node is deleted in dag exporter #1089

Merged
merged 1 commit into from
Dec 5, 2022

Conversation

jczhong84
Copy link
Collaborator

@jczhong84 jczhong84 commented Nov 23, 2022

Issue
When deleting a query cell by clicking the "X" hover icon in DAG exporter, the edge connecting to the node are not actually deleted. When the node is added back to the graph, the edge is still there.

Fix
The latest react-flow v11.3 provide a util function of deleteElements to help deleting an element, which will have the correct behavior. Here we're upgrading react-flow to v11 and use this function to do the node deleting.

@czgu czgu merged commit d945a68 into pinterest:master Dec 5, 2022
rohan-sh1 pushed a commit to CAI-TECHNOLOGIES/cai-ext-db-explorer that referenced this pull request Feb 28, 2023
@jczhong84 jczhong84 deleted the fix/reactflow branch April 7, 2023 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants