From a9f8e1cba6d3da1b2d8e68b684bf5b4f17968a49 Mon Sep 17 00:00:00 2001 From: Mo Bitar Date: Mon, 6 Dec 2021 13:20:45 -0600 Subject: [PATCH 1/2] fix: handle component tag selection --- app/assets/javascripts/views/tags/tags_view.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/views/tags/tags_view.ts b/app/assets/javascripts/views/tags/tags_view.ts index 4bd6f721d..cd19ff1f0 100644 --- a/app/assets/javascripts/views/tags/tags_view.ts +++ b/app/assets/javascripts/views/tags/tags_view.ts @@ -202,7 +202,7 @@ class TagsViewCtrl extends PureViewCtrl { registerComponentHandler() { this.unregisterComponent = - this.application.componentManager!.registerHandler({ + this.application.componentManager.registerHandler({ identifier: 'tags', areas: [ComponentArea.TagsList], actionHandler: (_, action, data) => { @@ -213,7 +213,13 @@ class TagsViewCtrl extends PureViewCtrl { return; } - if (item.content_type === ContentType.SmartTag) { + if (item.content_type === ContentType.Tag) { + const matchingTag = this.application.findItem(item.uuid); + + if (matchingTag) { + this.selectTag(matchingTag as SNTag); + } + } else if (item.content_type === ContentType.SmartTag) { const matchingTag = this.getState().smartTags.find( (t) => t.uuid === item.uuid ); From 1c4876acf09753bd454755082b75faa70e1b6d70 Mon Sep 17 00:00:00 2001 From: Mo Bitar Date: Mon, 6 Dec 2021 13:21:13 -0600 Subject: [PATCH 2/2] chore: bump version to 3.9.7 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 464e0e9a3..59d6228cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "standard-notes-web", - "version": "3.9.6", + "version": "3.9.7", "license": "AGPL-3.0-or-later", "repository": { "type": "git",