浏览代码

clean codebase

Aykut Saraç 3 年之前
父节点
当前提交
6a89b0e57c
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      src/utils/json-editor-parser.ts

+ 0 - 4
src/utils/json-editor-parser.ts

@@ -23,17 +23,13 @@ export const parser = (input: string | string[]): FlowElement[] => {
             )
           ),
         },
-        position: { x: 0, y: 0 },
-        type: "special",
         children: Object.entries(o)
           .filter(([k, v]) => Array.isArray(v) || typeof v === "object")
           .flatMap(([k, v]) => [
             {
               id: nextId(),
               data: { label: k },
-              position: { x: 0, y: 0 },
               children: extract(v, nextId),
-              type: "special",
             },
           ]),
       }));