From 337f54ac031349b66d1e4a30c1c54844def4b75a Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Sat, 2 Mar 2024 06:11:11 +0800 Subject: [PATCH] Fix attachmetsBox inTrash? (#3780) --- chrome/content/zotero/elements/attachmentsBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"))) {