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

This commit is contained in:
G30 2026-06-29 04:48:22 -04:00 • committed by GitHub
parent a66477b710
commit b05be8a907
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -622,6 +622,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();
}
};