1
0
Fork 0
mirror of synced 2024-09-15 00:38:01 +12:00

Fix redirections when deleting screns

This commit is contained in:
Andrew Kingston 2022-06-09 16:00:53 +01:00
parent c6dbd52c88
commit c83301841c
2 changed files with 1 additions and 2 deletions

View file

@ -12,7 +12,7 @@
urlParam: "screenId",
stateKey: "selectedScreenId",
validate: id => $store.screens.some(screen => screen._id === id),
fallbackUrl: "../../",
fallbackUrl: "../../design",
store,
routify,
})

View file

@ -66,7 +66,6 @@
const deleteScreen = async () => {
try {
await store.actions.screens.delete(screen)
$goto("../")
notifications.success("Deleted screen successfully.")
} catch (err) {
notifications.error("Error deleting screen")