chore: fix tag context menu not closing on delete

This commit is contained in:
Aman Harwara
2024-02-02 16:20:40 +05:30
parent 28825bc2ee
commit cfde0fd9b8

View File

@@ -141,6 +141,10 @@ export class NavigationController
this.items.streamItems([ContentType.TYPES.Tag, ContentType.TYPES.SmartView], ({ changed, removed }) => {
this.reloadTags()
if (this.contextMenuTag && FindItem(removed, this.contextMenuTag.uuid)) {
this.setContextMenuTag(undefined)
}
runInAction(() => {
const currentSelectedTag = this.selected_