Spaces:
Build error
Build error
Commit
•
1bba900
1
Parent(s):
833fd87
🐛 Fix redirect after delete
Browse files
src/routes/+layout.svelte
CHANGED
@@ -69,7 +69,7 @@
|
|
69 |
if ($page.params.id !== id) {
|
70 |
await invalidateAll();
|
71 |
} else {
|
72 |
-
await goto(
|
73 |
}
|
74 |
} catch (err) {
|
75 |
console.error(err);
|
|
|
69 |
if ($page.params.id !== id) {
|
70 |
await invalidateAll();
|
71 |
} else {
|
72 |
+
await goto(base || "/", { invalidateAll: true });
|
73 |
}
|
74 |
} catch (err) {
|
75 |
console.error(err);
|