✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
remove localstorage actions for json
AykutSarac8732e59024c2
diff --git a/src/containers/ClearModal/index.tsx b/src/containers/ClearModal/index.tsxindex b268bfff..8b41f704 100644--- a/src/containers/ClearModal/index.tsx+++ b/src/containers/ClearModal/index.tsx@@ -10,7 +10,6 @@ export const ClearModal: React.FC<ModalProps> = ({ visible, setVisible }) => {const handleClear = () => {dispatch({ type: ConfigActionType.SET_JSON, payload: "{}" });- localStorage.removeItem("json");toast.success(`Cleared JSON and removed from memory.`);setVisible(false);};diff --git a/src/hocs/config.tsx b/src/hocs/config.tsxindex 581dae98..0879f57d 100644--- a/src/hocs/config.tsx+++ b/src/hocs/config.tsx@@ -43,12 +43,8 @@ const WithConfig: ReactComponent = ({ children }) => {};React.useEffect(() => {- const jsonStored = localStorage.getItem("json");- if (jsonStored) {- dispatch({ type: ConfigActionType.SET_JSON, payload: jsonStored });- }-const configStored = localStorage.getItem("config");+if (configStored) {dispatch({type: ConfigActionType.SET_CONFIG,