Fix breakage in collection selection from 36db3c98

This commit is contained in:
Dan Stillman 2016-03-13 04:57:45 -04:00
parent 0fc91a4ef2
commit c18675801f

View file

@ -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];