diff --git a/src/lib/components/NoteHistory.svelte b/src/lib/components/NoteHistory.svelte index 65550ab..1b84c60 100644 --- a/src/lib/components/NoteHistory.svelte +++ b/src/lib/components/NoteHistory.svelte @@ -21,6 +21,8 @@ let showConfirm = $state(false); $effect(() => { + // Track noteId explicitly so this only re-runs when the note changes + noteId; void loadVersions(); }); @@ -122,9 +124,9 @@ -
+
-
+
{#if isLoading}
Loading… @@ -166,7 +168,7 @@ Loading…
{:else if selectedVersion} -
+
{#if selectedVersion.title}

{selectedVersion.title}