fix(core): reset nodes and edges before state

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-04-02 20:52:57 +02:00
committed by Braks
parent b94c6eee7d
commit 6c806e8059
+3
View File
@@ -719,6 +719,9 @@ export function useActions(state: State, getters: ComputedGetters): Actions {
toObject,
updateNodeInternals,
$reset: () => {
state.edges = []
state.nodes = []
setState(useState())
},
$destroy: () => {},