Fix attachmetsBox inTrash? (#3780)

This commit is contained in:
windingwind 2024-03-02 06:11:11 +08:00 committed by GitHub
parent b047f3d903
commit 337f54ac03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,7 +79,7 @@
return; return;
} }
this._inTrash = inTrash; this._inTrash = inTrash;
if (!this._item.isRegularItem()) { if (!this._item?.isRegularItem()) {
return; return;
} }
for (let row of Array.from(this._attachments.querySelectorAll("attachment-row"))) { for (let row of Array.from(this._attachments.querySelectorAll("attachment-row"))) {