commit 2831e8be3ed83a36eaca8224bfc991d3bdf0f98d
parent 8547dedca916f012d6338de731ab2c2a18ea42a9
Author: Dan Stillman <dstillman@zotero.org>
Date: Sun, 10 Jun 2018 02:49:17 -0400
Mendeley import: Fix "keys is undefined" error
An error would occur if a document existed in RemoteDocuments but not
Documents.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/chrome/content/zotero/import/mendeley/mendeleyImport.js b/chrome/content/zotero/import/mendeley/mendeleyImport.js
@@ -427,6 +427,7 @@ Zotero_Import_Mendeley.prototype._getDocumentCollections = async function (group
);
for (let row of rows) {
let keys = map.get(row.documentId);
+ if (!keys) keys = [];
keys.push(folderKeys.get(row.folderId));
map.set(row.documentId, keys);
}