소스 검색

fix: remove collapsed state persisting on json change

AykutSarac 2 년 전
부모
커밋
2e93da574d
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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,
     }),