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'];
|
||||
// Cache the visible fields so they don't load individually
|
||||
var visibleFields = this.getVisibleFields();
|
||||
try {
|
||||
var visibleFields = this.getVisibleFields();
|
||||
}
|
||||
// If treebox isn't ready, skip refresh
|
||||
catch (e) {
|
||||
return;
|
||||
}
|
||||
for each(var field in visibleFields) {
|
||||
if (field == 'year') {
|
||||
field = 'date';
|
||||
|
|
Loading…
Reference in New Issue
Block a user