Merge branch 'hotfix/10.1.2'

This commit is contained in:
Mo Bitar
2021-12-06 13:21:20 -06:00
2 changed files with 9 additions and 3 deletions

View File

@@ -202,7 +202,7 @@ class TagsViewCtrl extends PureViewCtrl<unknown, TagState> {
registerComponentHandler() { registerComponentHandler() {
this.unregisterComponent = this.unregisterComponent =
this.application.componentManager!.registerHandler({ this.application.componentManager.registerHandler({
identifier: 'tags', identifier: 'tags',
areas: [ComponentArea.TagsList], areas: [ComponentArea.TagsList],
actionHandler: (_, action, data) => { actionHandler: (_, action, data) => {
@@ -213,7 +213,13 @@ class TagsViewCtrl extends PureViewCtrl<unknown, TagState> {
return; 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( const matchingTag = this.getState().smartTags.find(
(t) => t.uuid === item.uuid (t) => t.uuid === item.uuid
); );

View File

@@ -1,6 +1,6 @@
{ {
"name": "standard-notes-web", "name": "standard-notes-web",
"version": "3.9.6", "version": "3.9.7",
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"repository": { "repository": {
"type": "git", "type": "git",