mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-22 08:02:19 +00:00
make reorder more resilient
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user