1
0
Fork 0
mirror of synced 2024-10-01 01:28:51 +13:00

Update more option picker logic to only hide nullish rather than falsey values when using a dynamic options source

This commit is contained in:
Andrew Kingston 2022-03-01 10:00:08 +00:00
parent b738fcf030
commit 11cd5d1570

View file

@ -30,7 +30,7 @@ export const getOptions = (
let optionsSet = {}
dataProvider?.rows?.forEach(row => {
const value = row?.[valueColumn]
if (value) {
if (value != null) {
const label = row[labelColumn] || value
optionsSet[value] = { value, label }
}