소스 검색

fixed collapsed parents reset state on edit

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