1
0
Fork 0
mirror of synced 2024-09-29 16:51:33 +13:00

Remove notification when saving custom options

This commit is contained in:
Andrew Kingston 2021-08-17 11:36:33 +01:00
parent e92455dc88
commit 8a12aaf27a

View file

@ -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>