web: refresh nav items on deleting a tag

This commit is contained in:
Abdullah Atta
2024-02-23 17:29:26 +05:00
parent 6b9567a0be
commit 484fc4f5a4

View File

@@ -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();