Skip to content

Commit d3a6671

Browse files
committed
fix: fix unknown table
1 parent c30902e commit d3a6671

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/frontend/src/routes/(authed)/(space)/+layout.svelte

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@
6060
goto(`/bases/${bases[0]?.id}`, { replaceState: true })
6161
}
6262
63+
$: if ($page.params.tableId && !tables.find((table) => table?.id === $page.params.tableId)) {
64+
goto("/", { replaceState: true })
65+
}
66+
6367
let CreateBaseDialog: ComponentType
6468
onMount(async () => {
6569
CreateBaseDialog = (await import("$lib/components/blocks/create-base/create-base-dialog.svelte")).default

0 commit comments

Comments
 (0)