From 9779bbfd8ed6bc5d561b01c15e778e5cc6481ad8 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 17 Nov 2024 14:00:37 -0800 Subject: [PATCH] fix: functions redirect --- src/routes/(app)/admin/functions/create/+page.svelte | 2 +- src/routes/(app)/admin/functions/edit/+page.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/(app)/admin/functions/create/+page.svelte b/src/routes/(app)/admin/functions/create/+page.svelte index 1cfd9b873..c3ac6cb06 100644 --- a/src/routes/(app)/admin/functions/create/+page.svelte +++ b/src/routes/(app)/admin/functions/create/+page.svelte @@ -49,7 +49,7 @@ functions.set(await getFunctions(localStorage.token)); models.set(await getModels(localStorage.token)); - await goto('/workspace/functions'); + await goto('/admin/functions'); } }; diff --git a/src/routes/(app)/admin/functions/edit/+page.svelte b/src/routes/(app)/admin/functions/edit/+page.svelte index 49052514f..26989f9b1 100644 --- a/src/routes/(app)/admin/functions/edit/+page.svelte +++ b/src/routes/(app)/admin/functions/edit/+page.svelte @@ -59,7 +59,7 @@ if (id) { func = await getFunctionById(localStorage.token, id).catch((error) => { toast.error(error); - goto('/workspace/functions'); + goto('/admin/functions'); return null; });