diff --git a/chrome/content/zotero/xpcom/data/tags.js b/chrome/content/zotero/xpcom/data/tags.js index 0aee571025..565f6a4827 100644 --- a/chrome/content/zotero/xpcom/data/tags.js +++ b/chrome/content/zotero/xpcom/data/tags.js @@ -720,7 +720,7 @@ Zotero.Tags = new function() { }); - this.toggleItemsListTags = Zotero.Promise.coroutine(function* (libraryID, items, tagName) { + this.toggleItemsListTags = async function (items, tagName) { if (!items.length) { return; } @@ -754,7 +754,7 @@ Zotero.Tags = new function() { } } }.bind(this)); - }); + }; /** diff --git a/chrome/content/zotero/xpcom/itemTreeView.js b/chrome/content/zotero/xpcom/itemTreeView.js index 984880f66b..6b24925013 100644 --- a/chrome/content/zotero/xpcom/itemTreeView.js +++ b/chrome/content/zotero/xpcom/itemTreeView.js @@ -207,7 +207,7 @@ Zotero.ItemTreeView.prototype.setTree = async function (treebox) { } var items = self.getSelectedItems(); - yield Zotero.Tags.toggleItemsListTags(libraryID, items, colorData.name); + yield Zotero.Tags.toggleItemsListTags(items, colorData.name); return; }