mirror of
https://github.com/zotero/zotero.git
synced 2026-10-09 03:18:01 +00:00
Fix for error when rapidly showing-hiding-showing the items list
This commit is contained in:
parent
4b83db32aa
commit
eef19de220
1 changed files with 7 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue