fix(frontend): Fix selected value when the default value of a select component is null (#3778)

This commit is contained in:
Faton Ramadani
2024-05-21 09:06:12 +02:00
committed by GitHub
parent da3b0434e9
commit 31c47774cd
@@ -104,7 +104,7 @@
} else if (listItems.length > 0 && resolvedConfig?.preselectFirst) {
rawValue = resolvedConfig.items[0].value
}
if (rawValue !== undefined) {
if (rawValue !== undefined && rawValue !== null) {
value = JSON.stringify(rawValue)
outputs?.result.set(rawValue)
}