Prevent error when creating a note from annotations that have ink
This commit is contained in:
parent
9691fcafc2
commit
4fdf43ed92
2 changed files with 4 additions and 3 deletions
|
@ -1398,7 +1398,8 @@ class EditorInstanceUtilities {
|
||||||
|
|
||||||
if (!annotation.text
|
if (!annotation.text
|
||||||
&& !annotation.comment
|
&& !annotation.comment
|
||||||
&& !annotation.imageAttachmentKey) {
|
&& !annotation.imageAttachmentKey
|
||||||
|
|| annotation.type === 'ink') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5049,7 +5049,7 @@ var ZoteroPane = new function()
|
||||||
catch (e) {
|
catch (e) {
|
||||||
Zotero.logError(e);
|
Zotero.logError(e);
|
||||||
}
|
}
|
||||||
annotations.push(...attachment.getAnnotations());
|
annotations.push(...attachment.getAnnotations().filter(x => x.annotationType != 'ink'));
|
||||||
}
|
}
|
||||||
var note = await Zotero.EditorInstance.createNoteFromAnnotations(
|
var note = await Zotero.EditorInstance.createNoteFromAnnotations(
|
||||||
annotations,
|
annotations,
|
||||||
|
@ -5145,7 +5145,7 @@ var ZoteroPane = new function()
|
||||||
catch (e) {
|
catch (e) {
|
||||||
Zotero.logError(e);
|
Zotero.logError(e);
|
||||||
}
|
}
|
||||||
annotations.push(...attachment.getAnnotations());
|
annotations.push(...attachment.getAnnotations().filter(x => x.annotationType != 'ink'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue