Skip to content

Commit

Permalink
fix: fix unknown table
Browse files Browse the repository at this point in the history
  • Loading branch information
nichenqin committed Aug 28, 2024
1 parent c30902e commit d3a6671
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/frontend/src/routes/(authed)/(space)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
goto(`/bases/${bases[0]?.id}`, { replaceState: true })
}
$: if ($page.params.tableId && !tables.find((table) => table?.id === $page.params.tableId)) {
goto("/", { replaceState: true })
}
let CreateBaseDialog: ComponentType
onMount(async () => {
CreateBaseDialog = (await import("$lib/components/blocks/create-base/create-base-dialog.svelte")).default
Expand Down

0 comments on commit d3a6671

Please sign in to comment.