From 26f8815a4d87191a148fc332db3bdb7ae0dde2e0 Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Thu, 14 Sep 2023 00:48:13 +0530 Subject: [PATCH] chore: fix create new note regression --- .../Controllers/Navigation/NavigationController.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/web/src/javascripts/Controllers/Navigation/NavigationController.ts b/packages/web/src/javascripts/Controllers/Navigation/NavigationController.ts index db32e5339..6febb4606 100644 --- a/packages/web/src/javascripts/Controllers/Navigation/NavigationController.ts +++ b/packages/web/src/javascripts/Controllers/Navigation/NavigationController.ts @@ -206,17 +206,17 @@ 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) - } }) } async handleEvent(event: InternalEventInterface): Promise { if (event.type === VaultDisplayServiceEvent.VaultDisplayOptionsChanged) { this.reloadTags() + if (this.selectedUuid) { + this.findAndSetTag(this.selectedUuid) + } else { + this.selectHomeNavigationView().catch(console.error) + } } }