Fix not awaiting this._getNoteContext
This commit is contained in:
parent
696897f6fa
commit
29cf8d2f79
@ -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) {
|
if (noteId) {
|
||||||
const index = this.definitions.indexOf(definition);
|
const index = this.definitions.indexOf(definition);
|
||||||
const adderButton = this.adderButtonFind(index, mode);
|
const adderButton = this.adderButtonFind(index, mode);
|
||||||
|
Loading…
Reference in New Issue
Block a user