Fix _addFieldTemplatesBeforeEnd not being await'd (#850)

This commit is contained in:
toasted-nutbread 2020-09-20 00:35:56 -04:00 committed by GitHub
parent 7a8b7eb488
commit 07c95c56ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -380,7 +380,7 @@ class OptionsUtil {
if (addition === null) {
addition = await this._fetchAsset(additionSourceUrl);
}
profileOptions.anki.fieldTemplates = this._addFieldTemplatesBeforeEnd(fieldTemplates, addition);
profileOptions.anki.fieldTemplates = await this._addFieldTemplatesBeforeEnd(fieldTemplates, addition);
}
}
}