From 3dcadc280d23ee7b4e9ba94695302dff0a7f8a39 Mon Sep 17 00:00:00 2001 From: Frederic Cabassut Date: Mon, 9 Mar 2026 21:36:16 +0100 Subject: [PATCH] fix: reload notes when navigating to archive or trash views Call loadNotes(filter) when the filter prop changes so the store gets populated with the correct note subset for each view. Co-Authored-By: Claude Opus 4.6 --- src/lib/components/NotesView.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/components/NotesView.svelte b/src/lib/components/NotesView.svelte index 0588ad8..223a14e 100644 --- a/src/lib/components/NotesView.svelte +++ b/src/lib/components/NotesView.svelte @@ -19,10 +19,11 @@ let editingNote: Note | null = $state(null); let showNewNote = $state(false); - // Sync store with route props + // Sync store with route props and reload notes when filter changes $effect(() => { currentFilter.set(filter); selectedTag.set(tag); + loadNotes(filter); }); function openEditor(note: Note) {