Fix not awaiting this._getNoteContext

This commit is contained in:
toasted-nutbread 2020-04-06 18:55:45 -04:00
parent 696897f6fa
commit 29cf8d2f79

View File

@ -760,7 +760,8 @@ class Display {
}
}
const noteId = await apiDefinitionAdd(definition, mode, this._getNoteContext(), details, this.getOptionsContext());
const context = await this._getNoteContext();
const noteId = await apiDefinitionAdd(definition, mode, context, details, this.getOptionsContext());
if (noteId) {
const index = this.definitions.indexOf(definition);
const adderButton = this.adderButtonFind(index, mode);