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 useEffect at sidebar

Aykut Saraç53b61da68c76
diff --git a/src/components/Sidebar/index.tsx b/src/components/Sidebar/index.tsx
index a355a2c3..22c22336 100644
--- a/src/components/Sidebar/index.tsx
+++ b/src/components/Sidebar/index.tsx
@@ -119,7 +119,7 @@ export const Sidebar = () => {
setJson(data.target?.result as string);
};
}
- }, [jsonFile]);
+ }, [jsonFile, setJson]);
return (
<StyledSidebar>