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