✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
lint
AykutSarac0fc6e8dcd7cd
diff --git a/src/hocs/config.tsx b/src/hocs/config.tsxindex ed4436ea..36494e20 100644--- a/src/hocs/config.tsx+++ b/src/hocs/config.tsx@@ -39,15 +39,18 @@ const WithConfig: ReactComponent = ({ children }) => {React.useEffect(() => {const jsonStored = localStorage.getItem("json");- if (jsonStored)+ if (jsonStored) {dispatch({ type: ConfigActionType.SET_JSON, payload: jsonStored });+ }const configStored = localStorage.getItem("config");- if (configStored)+ if (configStored) {dispatch({type: ConfigActionType.SET_CONFIG,payload: JSON.parse(configStored),});+ }+setRender(true);}, [dispatch]);