mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-25 16:02:11 +00:00
make select tab more resilient
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
|
||||
function setDefaultValue() {
|
||||
if (resolvedConfig.defaultValue === undefined) {
|
||||
selected = resolvedConfig.items[0].value
|
||||
selected = resolvedConfig.items?.[0]?.value
|
||||
} else if (resolvedConfig.defaultValue) {
|
||||
selected = resolvedConfig.defaultValue
|
||||
}
|
||||
|
||||
@@ -142,6 +142,13 @@
|
||||
},
|
||||
type: 'delete',
|
||||
disabled: !canWrite
|
||||
},
|
||||
{
|
||||
displayName: 'View/Edit JSON',
|
||||
icon: faFileExport,
|
||||
action: () => {
|
||||
loadAppJson()
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user