fix(notes): refresh pinned notes sidebar when a note is deleted (#25640)
This commit is contained in:
2 files changed
+2
No files matched your search
@@ -622,6 +622,7 @@ ${content}
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
|
pinnedNotes.set(await getPinnedNoteList(localStorage.token).catch(() => []));
|
||||||
toast.success($i18n.t('Note deleted successfully'));
|
toast.success($i18n.t('Note deleted successfully'));
|
||||||
goto('/notes');
|
goto('/notes');
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -111,6 +111,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
|
pinnedNotes.set(await getPinnedNoteList(localStorage.token).catch(() => []));
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user