Fix RIS/BibTeX import errors when in library root
This commit is contained in:
parent
a455a72534
commit
19447e7b90
1 changed files with 1 additions and 1 deletions
|
@ -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)];
|
||||
|
|
Loading…
Add table
Reference in a new issue