fix(notes): refresh pinned notes sidebar when a note is deleted

This commit is contained in:
silentoplayz 2026-06-03 00:08:53 -04:00
parent 1a97751e37
commit e3a82b3b2b
2 changed files with 2 additions and 0 deletions

View file

@ -618,6 +618,7 @@ ${content}
});
if (res) {
pinnedNotes.set(await getPinnedNoteList(localStorage.token).catch(() => []));
toast.success($i18n.t('Note deleted successfully'));
goto('/notes');
} else {

View file

@ -111,6 +111,7 @@
});
if (res) {
pinnedNotes.set(await getPinnedNoteList(localStorage.token).catch(() => []));
init();
}
};