From c83301841c6713b201441e88fb8371fa825e31be Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 9 Jun 2022 16:00:53 +0100 Subject: [PATCH] Fix redirections when deleting screns --- .../builder/app/[application]/design/[screenId]/_layout.svelte | 2 +- .../[screenId]/screens/_components/ScreenDropdownMenu.svelte | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_layout.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_layout.svelte index 82c8e628de..d0eb93466d 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_layout.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_layout.svelte @@ -12,7 +12,7 @@ urlParam: "screenId", stateKey: "selectedScreenId", validate: id => $store.screens.some(screen => screen._id === id), - fallbackUrl: "../../", + fallbackUrl: "../../design", store, routify, }) diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/screens/_components/ScreenDropdownMenu.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/screens/_components/ScreenDropdownMenu.svelte index 2f14766d8e..55c79a3b9f 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/screens/_components/ScreenDropdownMenu.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/screens/_components/ScreenDropdownMenu.svelte @@ -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")