diff --git a/src/utils/json-editor-parser.js b/src/utils/json-editor-parser.js index 61a13f1..fce20ab 100644 --- a/src/utils/json-editor-parser.js +++ b/src/utils/json-editor-parser.js @@ -22,7 +22,9 @@ export const parser = (input) => { id: nextId(), data: { label: Object.fromEntries( - Object.entries(o).filter(([k, v]) => !Array.isArray(v)) + Object.entries(o).filter( + ([k, v]) => !Array.isArray(v) && !(v instanceof Object) + ) ), }, position: { x: 0, y: 0 },