Don't show underline or text annotations in Zotero 6

This commit is contained in:
Dan Stillman 2023-09-05 00:00:18 -04:00
parent 9e4986abf5
commit 16ea4da9b2

View file

@ -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));
};