diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 640b14d703..45cd1f6a0f 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -3964,7 +3964,9 @@ Zotero.Item.prototype.getAnnotations = function (includeTrashed) { } var ids = rows.map(row => row.itemID); this._annotations[cacheKey] = ids; - return Zotero.Items.get(ids); + return Zotero.Items.get(ids) + // Filter out underline and text annotations in Zotero 6 + .filter(x => !['underline', 'text'].includes(x.annotationType)); };