✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
fix import
AykutSarac16217646f728
diff --git a/src/utils/json-editor-parser.js b/src/utils/json-editor-parser.jsindex b6b00bdd..b14328e4 100644--- a/src/utils/json-editor-parser.js+++ b/src/utils/json-editor-parser.js@@ -1,6 +1,8 @@+import { FlowElement } from "react-flow-renderer";+/**- * @param {never[] | Object} input- * @returns {import("react-flow-renderer").FlowElement[]}+ * @param {never[] | Object} input+ * @returns {FlowElement[]}*/export const parser = (input) => {try {@@ -54,6 +56,8 @@ export const parser = (input) => {const res = extract(input);+ console.log([...flatten(res), ...relationships(res)]);+return [...flatten(res), ...relationships(res)];} catch (error) {console.error("An error occured while parsin JSON data!", error.stack);