Ver código fonte

fix: functions redirect

Timothy Jaeryang Baek 5 meses atrás
pai
commit
9779bbfd8e

+ 1 - 1
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');
 		}
 	};
 

+ 1 - 1
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;
 			});