Filter ink annotations before creating note from annotations

This commit is contained in:
Martynas Bagdonas 2021-08-30 11:06:10 +03:00
parent c2df338430
commit aa7f5289a3
2 changed files with 2 additions and 2 deletions

View file

@ -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();

View file

@ -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);
};