mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-06 02:48:04 +00:00
fix(notes): refresh pinned notes sidebar when a note is deleted
This commit is contained in:
parent
1a97751e37
commit
e3a82b3b2b
2 changed files with 2 additions and 0 deletions
|
|
@ -618,6 +618,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();
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue