fix(core): reset nodes and edges before state
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -719,6 +719,9 @@ export function useActions(state: State, getters: ComputedGetters): Actions {
|
|||||||
toObject,
|
toObject,
|
||||||
updateNodeInternals,
|
updateNodeInternals,
|
||||||
$reset: () => {
|
$reset: () => {
|
||||||
|
state.edges = []
|
||||||
|
state.nodes = []
|
||||||
|
|
||||||
setState(useState())
|
setState(useState())
|
||||||
},
|
},
|
||||||
$destroy: () => {},
|
$destroy: () => {},
|
||||||
|
|||||||
Reference in New Issue
Block a user