1
0
Fork 0
mirror of synced 2024-09-12 07:27:20 +12:00

Update 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 09:51:48 +00:00
parent 576e79ecdd
commit 9535bc7c24

View file

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