From d0bdc45b9f9bbdb9fc86807ee11d4e8fc30d5b97 Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Thu, 18 Feb 2021 18:11:19 +0200 Subject: [PATCH] Fix "Add to Note" for not yet created note --- chrome/content/zotero/xpcom/editorInstance.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/xpcom/editorInstance.js b/chrome/content/zotero/xpcom/editorInstance.js index 9781fdc8f6..39d381cfac 100644 --- a/chrome/content/zotero/xpcom/editorInstance.js +++ b/chrome/content/zotero/xpcom/editorInstance.js @@ -152,6 +152,7 @@ class EditorInstance { } async insertAnnotations(annotations) { + await this._ensureNoteCreated(); let html = await this._digestAnnotations(annotations); if (html) { this._postMessage({ action: 'insertHTML', pos: -1, html });