aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js/display.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-06 18:55:45 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-06 18:55:45 -0400
commit29cf8d2f79f23b7723d508085ca242396bbbd5c9 (patch)
tree3ac714d3b485b1a1b6b349f48a91a67045256f81 /ext/mixed/js/display.js
parent696897f6fa431c0c24332c5dd2a2c12a07923c0e (diff)
Fix not awaiting this._getNoteContext
Diffstat (limited to 'ext/mixed/js/display.js')
-rw-r--r--ext/mixed/js/display.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index 64c604e8..2f456c3e 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -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);