diff --git a/frontend/src/lib/components/SchemaEditor.svelte b/frontend/src/lib/components/SchemaEditor.svelte index 6b60310017..c2025aaf2c 100644 --- a/frontend/src/lib/components/SchemaEditor.svelte +++ b/frontend/src/lib/components/SchemaEditor.svelte @@ -66,7 +66,9 @@ const n = {} ;(schema.order as string[]).forEach((x) => { - n[x] = schema.properties[x] + if (schema.properties && schema.properties[x] != undefined) { + n[x] = schema.properties[x] + } }) Object.keys(schema.properties ?? {}) @@ -240,7 +242,8 @@ index: index, propertiesNumber: Object.entries(properties).length } - if (property.type === 'object') { + console.log(name, property) + if (property?.type === 'object') { const newPath = [...path, name] return [ displayInfo,