Fix /connector/saveSnapshot still not including info about snapshots

This commit is contained in:
Adomas Venčkauskas 2023-07-12 10:21:32 +03:00
parent 2aa34a6346
commit e5d25f3d66

View file

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