Merge pull request #4180 from darabos/patch-1

Do not reset nodes and edges — they are controlled by the user
This commit is contained in:
Moritz Klack
2024-05-02 11:25:31 +02:00
committed by GitHub
-2
View File
@@ -350,8 +350,6 @@ export function createStore({
store.selectionRectMode.set(null); store.selectionRectMode.set(null);
store.snapGrid.set(null); store.snapGrid.set(null);
store.isValidConnection.set(() => true); store.isValidConnection.set(() => true);
store.nodes.set([]);
store.edges.set([]);
unselectNodesAndEdges(); unselectNodesAndEdges();
cancelConnection(); cancelConnection();