mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-26 23:44:48 -06:00
fix(notes): refresh pinned notes sidebar when a note is deleted (#25640)
This commit is contained in:
@@ -622,6 +622,7 @@ ${content}
|
||||
});
|
||||
|
||||
if (res) {
|
||||
pinnedNotes.set(await getPinnedNoteList(localStorage.token).catch(() => []));
|
||||
toast.success($i18n.t('Note deleted successfully'));
|
||||
goto('/notes');
|
||||
} else {
|
||||
|
||||
@@ -111,6 +111,7 @@
|
||||
});
|
||||
|
||||
if (res) {
|
||||
pinnedNotes.set(await getPinnedNoteList(localStorage.token).catch(() => []));
|
||||
init();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user