make reorder more resilient

This commit is contained in:
Ruben Fiszel
2024-01-31 20:36:29 +01:00
parent 070fe507cc
commit b528d218ba
@@ -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,