Remove notification when saving custom options
This commit is contained in:
parent
bc788273a0
commit
432b817d98
|
@ -1,5 +1,5 @@
|
|||
<script>
|
||||
import { notifications, ActionButton, Button, Drawer } from "@budibase/bbui"
|
||||
import { ActionButton, Button, Drawer } from "@budibase/bbui"
|
||||
import { createEventDispatcher } from "svelte"
|
||||
import OptionsDrawer from "./OptionsDrawer.svelte"
|
||||
|
||||
|
@ -11,10 +11,9 @@
|
|||
let tempValue = value || []
|
||||
|
||||
const saveFilter = async () => {
|
||||
// Filter out null objects
|
||||
// Filter out incomplete options
|
||||
tempValue = tempValue.filter(option => option.value && option.label)
|
||||
dispatch("change", tempValue)
|
||||
notifications.success("Options saved.")
|
||||
drawer.hide()
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue