Fix RTF Scan never marks citations as unmapped (#4328)

This commit is contained in:
Tom Najdek 2024-07-06 12:31:33 +02:00 committed by GitHub
parent 21203501a9
commit 2b5e116717
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -474,7 +474,7 @@ const Zotero_RTFScan = { // eslint-disable-line no-unused-vars, camelcase
Zotero.debug("Mapped to " + ids); Zotero.debug("Mapped to " + ids);
this.citationItemIDs[citationString] = ids; this.citationItemIDs[citationString] = ids;
if (!ids) { // no mapping found if (!ids.length) { // no mapping found
let row = _generateItem(citationString, ""); let row = _generateItem(citationString, "");
row.parent = unmappedRow; row.parent = unmappedRow;
this.insertRows(row, this.rowMap.ambiguous); this.insertRows(row, this.rowMap.ambiguous);