Fix for error when rapidly showing-hiding-showing the items list
This commit is contained in:
parent
4b83db32aa
commit
eef19de220
|
@ -144,7 +144,13 @@ Zotero.ItemTreeView.prototype.refresh = function()
|
||||||
|
|
||||||
var cacheFields = ['title', 'date'];
|
var cacheFields = ['title', 'date'];
|
||||||
// Cache the visible fields so they don't load individually
|
// Cache the visible fields so they don't load individually
|
||||||
|
try {
|
||||||
var visibleFields = this.getVisibleFields();
|
var visibleFields = this.getVisibleFields();
|
||||||
|
}
|
||||||
|
// If treebox isn't ready, skip refresh
|
||||||
|
catch (e) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
for each(var field in visibleFields) {
|
for each(var field in visibleFields) {
|
||||||
if (field == 'year') {
|
if (field == 'year') {
|
||||||
field = 'date';
|
field = 'date';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user