Fix await->yield in f8b41c971
This commit is contained in:
parent
f8b41c971c
commit
1d367f0165
|
@ -3701,7 +3701,7 @@ var ZoteroPane = new function()
|
||||||
if (files.length == 1 && Zotero.Prefs.get('renameAttachmentFiles.automatic')) {
|
if (files.length == 1 && Zotero.Prefs.get('renameAttachmentFiles.automatic')) {
|
||||||
let parentItem = Zotero.Items.get(parentItemID);
|
let parentItem = Zotero.Items.get(parentItemID);
|
||||||
if (!parentItem.numNonHTMLFileAttachments()) {
|
if (!parentItem.numNonHTMLFileAttachments()) {
|
||||||
fileBaseName = await Zotero.Attachments.getRenamedFileBaseNameIfAllowedType(
|
fileBaseName = yield Zotero.Attachments.getRenamedFileBaseNameIfAllowedType(
|
||||||
parentItem, files[0]
|
parentItem, files[0]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user