diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 7eeed426e..67f272a6d 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -3701,7 +3701,7 @@ var ZoteroPane = new function() if (files.length == 1 && Zotero.Prefs.get('renameAttachmentFiles.automatic')) { let parentItem = Zotero.Items.get(parentItemID); if (!parentItem.numNonHTMLFileAttachments()) { - fileBaseName = await Zotero.Attachments.getRenamedFileBaseNameIfAllowedType( + fileBaseName = yield Zotero.Attachments.getRenamedFileBaseNameIfAllowedType( parentItem, files[0] ); }