Browse Source

fix: remove collapsed state persisting on json change

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

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

@@ -31,6 +31,7 @@ const useGraph = create<Graph & GraphActions>((set, get) => ({
       collapsedParents: [],
       collapsedNodes: [],
       collapsedEdges: [],
+      graphCollapsed: false,
       loading: true,
       [key]: value,
     }),