diff --git a/src/lib/components/space/FileTree.svelte b/src/lib/components/space/FileTree.svelte index 75379a0..5db45bb 100644 --- a/src/lib/components/space/FileTree.svelte +++ b/src/lib/components/space/FileTree.svelte @@ -31,7 +31,7 @@ onSetEntry: (file: SpaceFile) => void; } = $props(); - let fileInput: HTMLInputElement; + let fileInput: HTMLInputElement = $state()!; function iconFor(path: string): string { const lower = path.toLowerCase(); @@ -77,7 +77,9 @@ {file.path} {#if file.path === entrypoint} - + + + {/if} {#if !readOnly} diff --git a/src/routes/space/[id]/+page.svelte b/src/routes/space/[id]/+page.svelte index be6c470..10eca4d 100644 --- a/src/routes/space/[id]/+page.svelte +++ b/src/routes/space/[id]/+page.svelte @@ -19,7 +19,7 @@ kind: string; } - const spaceId = $page.params.id; + const spaceId = $page.params.id as string; let spaceName = $state('Space'); let entrypoint = $state('main.typ');