Do not reset nodes and edges. They are controlled by the user.

This commit is contained in:
Daniel Darabos
2024-04-18 12:35:13 +02:00
committed by GitHub
parent 3f4cd6d1fb
commit a0a046e21f

View File

@@ -349,8 +349,6 @@ export function createStore({
store.selectionRectMode.set(null);
store.snapGrid.set(null);
store.isValidConnection.set(() => true);
store.nodes.set([]);
store.edges.set([]);
unselectNodesAndEdges();
cancelConnection();