✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
fix toggle private
AykutSarac6c270635ac2f
diff --git a/src/containers/Editor/BottomBar.tsx b/src/containers/Editor/BottomBar.tsxindex 1c47b05a..f27a25c4 100644--- a/src/containers/Editor/BottomBar.tsx+++ b/src/containers/Editor/BottomBar.tsx@@ -78,8 +78,6 @@ export const BottomBar = () => {const [isPrivate, setIsPrivate] = React.useState(true);React.useEffect(() => {- console.log(data);-setIsPrivate(data?.data.private ?? true);}, [data]);@@ -107,6 +105,7 @@ export const BottomBar = () => {const setPrivate = () => {if (!query.json) return handleSaveJson();+ setIsPrivate(!isPrivate);updateJson(query.json as string, { private: !isPrivate });};