fix(frontend): Allow 0 as select default value (#1474)

This commit is contained in:
Faton Ramadani
2023-04-25 12:28:57 +02:00
committed by GitHub
parent 272fabe2e2
commit 4ae4035ea9
@@ -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)
}