Fix await->yield in f8b41c971
This commit is contained in:
parent
f8b41c971c
commit
1d367f0165
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue