diff --git a/chrome/content/zotero/bindings/tagselector.xml b/chrome/content/zotero/bindings/tagselector.xml index 3290318d5..4264e5b2c 100644 --- a/chrome/content/zotero/bindings/tagselector.xml +++ b/chrome/content/zotero/bindings/tagselector.xml @@ -121,23 +121,25 @@ false null - + { + this._scope.forEach(function (types, name) { + tags.push(...types.map(type => { return { tag: name, - type: type + type }; })); - } + }); let { div, emptyRegular } = this.createTagsList(tags); tagsBox.replaceChild(div, tagsBox.firstChild); this._emptyRegular = emptyRegular; @@ -944,7 +946,7 @@ // Check tags against scope if (this._hasScope) { - var inScope = !!this._scope[name]; + var inScope = this._scope.has(name); } // If not in search, hide