mirror of
https://github.com/zotero/zotero.git
synced 2026-09-21 00:22:44 +00:00
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…
Add table
Reference in a new issue