From 12769460bac1d5a449eb437a779c37c41ff910ab Mon Sep 17 00:00:00 2001 From: Abdo Date: Sun, 26 Oct 2025 17:57:52 +0300 Subject: [PATCH] Fix initial=True being passed to subsequent loadNote calls --- ts/routes/editor/NoteEditor.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/routes/editor/NoteEditor.svelte b/ts/routes/editor/NoteEditor.svelte index 1e352fd74..f6f84f997 100644 --- a/ts/routes/editor/NoteEditor.svelte +++ b/ts/routes/editor/NoteEditor.svelte @@ -1209,10 +1209,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html async function loadNote(args: Partial) { if (args.initial) { - initialLoadArgs = args; + initialLoadArgs = {...args, initial: false}; } if (typeof args.focusTo === "undefined") { - args.focusTo = focusedFieldIndex; + args = {...args, focusTo: focusedFieldIndex}; } loadDebouncer.schedule(async () => { await loadNoteInner(