✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
remove unnecessary parse
AykutSarac91549de4e1cf
diff --git a/src/utils/json-editor-parser.ts b/src/utils/json-editor-parser.tsindex ccf86d9d..5b8c3759 100644--- a/src/utils/json-editor-parser.ts+++ b/src/utils/json-editor-parser.ts@@ -68,7 +68,7 @@ const relationships = (xs: { id: string; children: never[] }[]) => {export const parser = (input: string | string[]) => {try {- if (typeof input !== "object") input = JSON.parse(input);+ // if (typeof input !== "object") input = JSON.parse(input);if (!Array.isArray(input)) input = [input];const mappedElements = extract(input);