fix TS type errors

This commit is contained in:
2026-03-04 14:29:05 -05:00
parent 70f935867d
commit 77d47cf4b0
+3 -3
View File
@@ -11,7 +11,7 @@
import TagInput from '../TagInput.svelte'; import TagInput from '../TagInput.svelte';
const noteService = getNoteService(); const noteService = getNoteService();
const noteId = $derived($page.params.id); const noteId = $derived($page.params.id!);
const note = $derived(noteService.getNoteById(noteId)); const note = $derived(noteService.getNoteById(noteId));
let showTagDialog = $state(false); let showTagDialog = $state(false);
@@ -35,7 +35,7 @@
{#if note} {#if note}
<div class="h-screen flex flex-col"> <div class="h-screen flex flex-col">
<!-- Top App Bar --> <!-- Top App Bar -->
<div class="border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60"> <div class="border-b bg-background/95 backdrop-blur supports-backdrop-filter:bg-background/60">
<div class="container mx-auto px-4 py-3"> <div class="container mx-auto px-4 py-3">
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
@@ -87,7 +87,7 @@
<!-- Editor --> <!-- Editor -->
<div class="flex-1 overflow-hidden"> <div class="flex-1 overflow-hidden">
<NoteEditor {noteId} /> <NoteEditor {noteId} {noteService} />
</div> </div>
</div> </div>