mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-04 16:03:06 +00:00
fix(frontend): Allow 0 as select default value (#1474)
This commit is contained in:
@@ -42,12 +42,12 @@
|
||||
})
|
||||
: []
|
||||
let rawValue
|
||||
if (defaultValue) {
|
||||
if (defaultValue !== undefined) {
|
||||
rawValue = defaultValue
|
||||
} else if (listItems.length > 0) {
|
||||
rawValue = items[0].value
|
||||
}
|
||||
if (rawValue) {
|
||||
if (rawValue !== undefined) {
|
||||
value = JSON.stringify(rawValue)
|
||||
outputs?.result.set(rawValue)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user