Fix breakage in collection selection from 36db3c98
This commit is contained in:
parent
0fc91a4ef2
commit
c18675801f
1 changed files with 2 additions and 8 deletions
|
@ -902,8 +902,7 @@ Zotero.CollectionTreeView.prototype.selectByID = Zotero.Promise.coroutine(functi
|
|||
|
||||
switch (type) {
|
||||
case 'L':
|
||||
var found = yield this.selectLibrary(id);
|
||||
break;
|
||||
return yield this.selectLibrary(id);
|
||||
|
||||
case 'C':
|
||||
var found = yield this.expandToCollection(id);
|
||||
|
@ -915,12 +914,7 @@ Zotero.CollectionTreeView.prototype.selectByID = Zotero.Promise.coroutine(functi
|
|||
break;
|
||||
|
||||
case 'T':
|
||||
var found = yield this.selectTrash(id);
|
||||
break;
|
||||
}
|
||||
|
||||
if (found) {
|
||||
return true;
|
||||
return yield this.selectTrash(id);
|
||||
}
|
||||
|
||||
var row = this._rowMap[type + id];
|
||||
|
|
Loading…
Reference in a new issue