diff --git a/chrome/content/zotero/elements/attachmentsBox.js b/chrome/content/zotero/elements/attachmentsBox.js index dbb7120290..c3f95a88d6 100644 --- a/chrome/content/zotero/elements/attachmentsBox.js +++ b/chrome/content/zotero/elements/attachmentsBox.js @@ -79,7 +79,7 @@ return; } this._inTrash = inTrash; - if (!this._item.isRegularItem()) { + if (!this._item?.isRegularItem()) { return; } for (let row of Array.from(this._attachments.querySelectorAll("attachment-row"))) {