diff --git a/chrome/content/zotero/xpcom/server_connector.js b/chrome/content/zotero/xpcom/server_connector.js index 1ebfcc5c3d..2ecf6c07b4 100644 --- a/chrome/content/zotero/xpcom/server_connector.js +++ b/chrome/content/zotero/xpcom/server_connector.js @@ -646,7 +646,7 @@ Zotero.Server.Connector.Import.prototype = { var { library, collection, editable } = Zotero.Server.Connector.getSaveTarget(); let arg = {}; if (editable) { - arg = {libraryID: library.libraryID, collections: [collection.id]}; + arg = { libraryID: library.libraryID, collections: collection ? [collection.id] : null }; } let items = yield translate.translate(arg); return [201, "application/json", JSON.stringify(items)];