Browse Source

fixed collapsed parents reset state on edit

AykutSarac 2 years ago
parent
commit
cb86128df8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/hooks/store/useGraph.tsx

+ 1 - 0
src/hooks/store/useGraph.tsx

@@ -28,6 +28,7 @@ const useGraph = create<Graph & GraphActions>((set, get) => ({
   ...initialStates,
   setGraphValue: (key, value) =>
     set({
+      collapsedParents: [],
       collapsedNodes: [],
       collapsedEdges: [],
       [key]: value,