Ensure both label and value are set when defining custom options
This commit is contained in:
parent
d71b7e4b77
commit
bc788273a0
|
@ -12,7 +12,7 @@
|
|||
|
||||
const saveFilter = async () => {
|
||||
// Filter out null objects
|
||||
tempValue = tempValue.filter(optionValue => optionValue.value)
|
||||
tempValue = tempValue.filter(option => option.value && option.label)
|
||||
dispatch("change", tempValue)
|
||||
notifications.success("Options saved.")
|
||||
drawer.hide()
|
||||
|
|
Loading…
Reference in New Issue