mirror of
https://github.com/zotero/zotero.git
synced 2026-10-06 02:50:03 +00:00
Drop stray whitespace changes in translate_item.js
This commit is contained in:
parent
557a69c4c9
commit
66d5d51557
1 changed files with 3 additions and 3 deletions
|
|
@ -1086,11 +1086,11 @@ Zotero.Translate.ItemGetter.prototype = {
|
|||
setCollection: function (collection, getChildCollections) {
|
||||
// get items in this collection
|
||||
var items = new Set(collection.getChildItems());
|
||||
|
||||
|
||||
if (getChildCollections) {
|
||||
// Get child collections
|
||||
this._collectionsLeft = Zotero.Collections.getByParent(collection.id);
|
||||
|
||||
|
||||
// Get items in all descendant collections
|
||||
let descendantCollections = Zotero.Collections.getByParent(collection.id, true);
|
||||
for (let collection of descendantCollections) {
|
||||
|
|
@ -1098,7 +1098,7 @@ Zotero.Translate.ItemGetter.prototype = {
|
|||
childItems.forEach(item => items.add(item));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
this._itemsLeft = Array.from(items.values());
|
||||
this._itemsLeft.sort((a, b) => a.id - b.id);
|
||||
this.numItems = this._itemsLeft.length;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue