Remove notification when saving custom options

This commit is contained in:
Andrew Kingston 2021-08-17 11:36:33 +01:00
parent bc788273a0
commit 432b817d98
1 changed files with 2 additions and 3 deletions

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>