From 0bc06d6c1a9617955190841e01291a8aa87e134b Mon Sep 17 00:00:00 2001 From: Abdo Date: Tue, 24 Jun 2025 17:06:25 +0300 Subject: [PATCH] Fix lint error --- ts/routes/editor/NoteEditor.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ts/routes/editor/NoteEditor.svelte b/ts/routes/editor/NoteEditor.svelte index 73e189363..861c0109f 100644 --- a/ts/routes/editor/NoteEditor.svelte +++ b/ts/routes/editor/NoteEditor.svelte @@ -260,7 +260,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html await setMeta(tagsCollapsedMetaKey, collapsed); } - let note: Note | null = null; + let note: Note; export function setNote(n: Note): void { note = n; // TODO this is a hack, because it requires the NoteEditor to know implementation details of the PlainTextInput. @@ -468,9 +468,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html export function getNoteInfo() { return { - id: note?.id.toString() ?? null, + id: note.id.toString() ?? null, mid: notetypeMeta.id.toString(), - fields: note?.fields ?? [], + fields: note.fields ?? [], }; }