fixes small bug where user was not redirected to automation index page once last automation was deleted

This commit is contained in:
Keviin Åberg Kultalahti 2021-03-15 15:30:28 +01:00
parent 859653c62b
commit c0c41c5bc3
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
<script> <script>
import { goto } from "@sveltech/routify"
import { automationStore, backendUiStore } from "builderStore" import { automationStore, backendUiStore } from "builderStore"
import { notifier } from "builderStore/store/notifications" import { notifier } from "builderStore/store/notifications"
import { DropdownMenu } from "@budibase/bbui" import { DropdownMenu } from "@budibase/bbui"
@ -23,6 +24,7 @@
automation, automation,
}) })
notifier.success("Automation deleted.") notifier.success("Automation deleted.")
$goto('../automate')
} }
</script> </script>