Skip collectionTreeView::notify() actions if no selection
I think this only happens if the Zotero pane hasn't yet been opened, which also means an initial refresh() hasn't been done, which means that updates aren't necessary.
This commit is contained in:
parent
1c19fe8d81
commit
9c53fe893c
|
@ -332,6 +332,11 @@ Zotero.CollectionTreeView.prototype.notify = Zotero.Promise.coroutine(function*
|
|||
return;
|
||||
}
|
||||
|
||||
if (!this.selection) {
|
||||
Zotero.debug("Selection didn't exist in collectionTreeView.notify()");
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
// Actions that don't change the selection
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue
Block a user