Fix UI breakage that prevents switching collections
I'll add a test later once I figure out how to reproduce this, but I think this should fix the "id is undefined" errors.
This commit is contained in:
parent
2ebd7bd114
commit
83d11947ff
|
@ -130,7 +130,7 @@ Zotero.LibraryTreeView.prototype = {
|
||||||
* Restore a scroll position returned from _saveScrollPosition()
|
* Restore a scroll position returned from _saveScrollPosition()
|
||||||
*/
|
*/
|
||||||
_rememberScrollPosition: function (scrollPosition) {
|
_rememberScrollPosition: function (scrollPosition) {
|
||||||
if (!scrollPosition) {
|
if (!scrollPosition || !scrollPosition.id) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var row = this.getRowIndexByID(scrollPosition.id);
|
var row = this.getRowIndexByID(scrollPosition.id);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user