mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-21 16:02:28 +00:00
Fix reading undefined schema in SchemaForm (#6145)
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user