Do not reset nodes and edges. They are controlled by the user.
This commit is contained in:
@@ -349,8 +349,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();
|
||||||
|
|||||||
Reference in New Issue
Block a user