mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
web: refresh nav items on deleting a tag
This commit is contained in:
@@ -98,6 +98,7 @@ const menuItems: (tag: Tag, ids?: string[]) => MenuItem[] = (tag, ids = []) => {
|
||||
onClick: async () => {
|
||||
await db.tags.remove(...ids);
|
||||
showToast("success", `${pluralize(ids.length, "tag")} deleted`);
|
||||
await appStore.refreshNavItems();
|
||||
await editorStore.refreshTags();
|
||||
await tagStore.refresh();
|
||||
await noteStore.refresh();
|
||||
|
||||
Reference in New Issue
Block a user