fix object key visible

This commit is contained in:
AykutSarac 2022-02-04 16:52:11 +03:00
parent b6bb0eaf92
commit 05881ab4fc

View File

@ -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 },