We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c30902e commit d3a6671Copy full SHA for d3a6671
apps/frontend/src/routes/(authed)/(space)/+layout.svelte
@@ -60,6 +60,10 @@
60
goto(`/bases/${bases[0]?.id}`, { replaceState: true })
61
}
62
63
+ $: if ($page.params.tableId && !tables.find((table) => table?.id === $page.params.tableId)) {
64
+ goto("/", { replaceState: true })
65
+ }
66
+
67
let CreateBaseDialog: ComponentType
68
onMount(async () => {
69
CreateBaseDialog = (await import("$lib/components/blocks/create-base/create-base-dialog.svelte")).default
0 commit comments