From 785dcb30c392a836857739e09411dedcd202b37f Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Tue, 6 Jun 2023 16:20:10 +0300 Subject: [PATCH] Ensure that note is created when inserting an image Fixes #3155 --- 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 f89228745c..de340f7f97 100644 --- a/chrome/content/zotero/xpcom/editorInstance.js +++ b/chrome/content/zotero/xpcom/editorInstance.js @@ -633,6 +633,7 @@ class EditorInstance { return; } case 'importImages': { + await this._ensureNoteCreated(); let { images } = message; if (this._readOnly || this._filesReadOnly) { return;