Skip to content

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

update export

AykutSaraced466f7b469e
diff --git a/src/pages/editor/JsonEditor/index.tsx b/src/pages/editor/JsonEditor/index.tsx
index c154d517..91de87b6 100644
--- a/src/pages/editor/JsonEditor/index.tsx
+++ b/src/pages/editor/JsonEditor/index.tsx
@@ -35,7 +35,7 @@ export const defaultValue = [
},
];
-const JsonEditor: React.FC = () => {
+export const JsonEditor: React.FC = () => {
const [json, setJson] = useLocalStorage("json", JSON.stringify(defaultValue));
React.useEffect(() => {
@@ -55,7 +55,7 @@ const JsonEditor: React.FC = () => {
JSON.parse(value.json);
setJson(value.json);
} catch (error) {
- console.error("Invalid JSON!");
+ console.error("Invalid JSON!", error.stack);
}
}}
locale={locale}
@@ -63,5 +63,3 @@ const JsonEditor: React.FC = () => {
/>
);
};
-
-export default JsonEditor;