Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

fix: remove collapsed state persisting on json change

AykutSarac2e93da574df0
diff --git a/src/hooks/store/useGraph.tsx b/src/hooks/store/useGraph.tsx
index 5a714603..73234749 100644
--- a/src/hooks/store/useGraph.tsx
+++ b/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,
}),