From 57265d1d4e46d14b9438d32d88568bedd716a4f0 Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Tue, 12 Sep 2023 16:42:01 +0530 Subject: [PATCH] chore: fix current tag selection on vault display option change --- .../Controllers/Navigation/NavigationController.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/web/src/javascripts/Controllers/Navigation/NavigationController.ts b/packages/web/src/javascripts/Controllers/Navigation/NavigationController.ts index 4d6a70ce1..db32e5339 100644 --- a/packages/web/src/javascripts/Controllers/Navigation/NavigationController.ts +++ b/packages/web/src/javascripts/Controllers/Navigation/NavigationController.ts @@ -206,6 +206,11 @@ export class NavigationController this.tags = this.items.getDisplayableTags() this.starredTags = this.tags.filter((tag) => tag.starred) this.smartViews = this.items.getSmartViews() + if (this.selectedUuid) { + this.findAndSetTag(this.selectedUuid) + } else { + this.selectHomeNavigationView().catch(console.error) + } }) }