1
0
Fork 0
mirror of synced 2024-07-02 13:01:09 +12:00

Ensure both label and value are set when defining custom options

This commit is contained in:
Andrew Kingston 2021-08-17 11:34:46 +01:00
parent e274eeffce
commit e92455dc88

View file

@ -12,7 +12,7 @@
const saveFilter = async () => { const saveFilter = async () => {
// Filter out null objects // Filter out null objects
tempValue = tempValue.filter(optionValue => optionValue.value) tempValue = tempValue.filter(option => option.value && option.label)
dispatch("change", tempValue) dispatch("change", tempValue)
notifications.success("Options saved.") notifications.success("Options saved.")
drawer.hide() drawer.hide()