Fix failing test from 02ba9ca7

This commit is contained in:
Adomas Venčkauskas 2023-07-11 15:57:35 +03:00
parent 02ba9ca7f0
commit a0cdf11096

View file

@ -1137,7 +1137,7 @@ Zotero.Server.Connector.SaveSnapshot.prototype = {
}
let attachments = [];
let hasAttachments = item.getAttachments().length;
let hasAttachments = !item.isAttachment && item.getAttachments().length;
if (hasAttachments) {
attachments = [{mimeType: "text/html", title: data.title, url: data.url}];
}