Fix add to note

This commit is contained in:
Martynas Bagdonas 2023-06-23 15:51:35 +03:00 committed by Dan Stillman
parent 110f29b766
commit 3105bb9ff3

View file

@ -968,6 +968,7 @@ class ReaderTab extends ReaderInstance {
}
_addToNote(annotations) {
annotations = annotations.map(x => ({ ...x, attachmentItemID: this._item.id }));
let noteEditor = this._window.ZoteroContextPane && this._window.ZoteroContextPane.getActiveEditor();
if (!noteEditor) {
return;