Fix reading undefined schema in SchemaForm (#6145)

This commit is contained in:
Diego Imbert
2025-07-08 17:34:01 +02:00
committed by GitHub
parent 5d3d28915f
commit f4bb9eb573
@@ -226,8 +226,8 @@
})
$effect.pre(() => {
schema.order
Object.keys(schema.properties ?? {})
schema?.order
Object.keys(schema?.properties ?? {})
schema && (untrack(() => reorder()), (hidden = {}))
})
$effect.pre(() => {
@@ -236,7 +236,7 @@
if (args && typeof args == 'object') {
let oneShowExpr = false
for (const key of fields) {
if (schema.properties?.[key.value]?.showExpr) {
if (schema?.properties?.[key.value]?.showExpr) {
oneShowExpr = true
}
}