diff --git a/chrome/content/zotero/elements/attachmentRow.js b/chrome/content/zotero/elements/attachmentRow.js index acc4d72100..d82e939343 100644 --- a/chrome/content/zotero/elements/attachmentRow.js +++ b/chrome/content/zotero/elements/attachmentRow.js @@ -119,7 +119,7 @@ import { getCSSItemTypeIcon } from 'components/icons'; this._attachmentButton.querySelector(".icon").replaceWith(getCSSItemTypeIcon(this._attachment.getItemTypeIconName())); this._attachmentButton.querySelector(".label").textContent = this._attachment.getField('title'); - let annotationCount = this.attachment.getAnnotations().length; + let annotationCount = this.attachment.isWebAttachment() ? 0 : this.attachment.getAnnotations().length; this._annotationButton.hidden = annotationCount === 0; this._annotationButton.querySelector(".label").textContent = annotationCount; }