fix: resolve svelte-check type error in TableView component (#2)

page.params.workspace is string | undefined, but EmptyState expects
string. Add fallback to empty string so the type narrows correctly.
Fixes CI failure from svelte-check.
This commit is contained in:
xarmian
2026-03-28 10:54:03 -04:00
committed by GitHub
parent 52c8348361
commit a51e145b96
@@ -26,7 +26,7 @@
relationLabels
}: Props = $props();
let resolvedWsSlug = $derived(wsSlug || page.params.workspace);
let resolvedWsSlug = $derived(wsSlug || page.params.workspace || '');
let schema = $derived(parseSchema(collection));
let visibleFields = $derived(schema.fields.filter((f) => !f.computed));