chore: fix tag context menu not closing on delete
This commit is contained in:
@@ -141,6 +141,10 @@ export class NavigationController
|
|||||||
this.items.streamItems([ContentType.TYPES.Tag, ContentType.TYPES.SmartView], ({ changed, removed }) => {
|
this.items.streamItems([ContentType.TYPES.Tag, ContentType.TYPES.SmartView], ({ changed, removed }) => {
|
||||||
this.reloadTags()
|
this.reloadTags()
|
||||||
|
|
||||||
|
if (this.contextMenuTag && FindItem(removed, this.contextMenuTag.uuid)) {
|
||||||
|
this.setContextMenuTag(undefined)
|
||||||
|
}
|
||||||
|
|
||||||
runInAction(() => {
|
runInAction(() => {
|
||||||
const currentSelectedTag = this.selected_
|
const currentSelectedTag = this.selected_
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user