Browse Source

fix: remove collapsed state persisting on json change

AykutSarac 2 năm trước cách đây
mục cha
commit
2e93da574d
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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,
     }),