From cfde0fd9b859d3ab22a991527331e38f9ed0fd68 Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Fri, 2 Feb 2024 16:20:40 +0530 Subject: [PATCH] chore: fix tag context menu not closing on delete --- .../Controllers/Navigation/NavigationController.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/web/src/javascripts/Controllers/Navigation/NavigationController.ts b/packages/web/src/javascripts/Controllers/Navigation/NavigationController.ts index 60951fbb6..1138c87ea 100644 --- a/packages/web/src/javascripts/Controllers/Navigation/NavigationController.ts +++ b/packages/web/src/javascripts/Controllers/Navigation/NavigationController.ts @@ -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_