From aa7f5289a3dd30b5764a5584f8434714171b6984 Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Mon, 30 Aug 2021 11:06:10 +0300 Subject: [PATCH] Filter ink annotations before creating note from annotations --- chrome/content/zotero/contextPane.js | 2 +- chrome/content/zotero/zoteroPane.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/contextPane.js b/chrome/content/zotero/contextPane.js index 0f9eb6d422..7958ee9617 100644 --- a/chrome/content/zotero/contextPane.js +++ b/chrome/content/zotero/contextPane.js @@ -415,7 +415,7 @@ var ZoteroContextPane = new function () { return; } var note = await Zotero.EditorInstance.createNoteFromAnnotations( - attachment.getAnnotations(), child && attachment.parentID + attachment.getAnnotations().filter(x => x.annotationType != 'ink'), child && attachment.parentID ); _updateAddToNote(); diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index de40c17229..7029de3ded 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -4404,7 +4404,7 @@ var ZoteroPane = new function() return; } var note = await Zotero.EditorInstance.createNoteFromAnnotations( - attachment.getAnnotations(), attachment.parentID + attachment.getAnnotations().filter(x => x.annotationType != 'ink'), attachment.parentID ); await this.selectItem(note.id); };