AykutSarac пре 3 година
родитељ
комит
91549de4e1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/utils/json-editor-parser.ts

+ 1 - 1
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);