mirror of
https://github.com/PerpetualSoftware/pad.git
synced 2026-10-03 20:20:29 +00:00
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:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user