Fix error calling ZoteroPane.getCollectionTreeRow() if collection view
This commit is contained in:
parent
496e289dd9
commit
c3dcaf9fe0
1 changed files with 1 additions and 1 deletions
|
@ -1334,7 +1334,7 @@ var ZoteroPane = new function()
|
|||
|
||||
|
||||
this.getCollectionTreeRow = function () {
|
||||
if (!this.collectionsView.selection.count) {
|
||||
if (!this.collectionsView || !this.collectionsView.selection.count) {
|
||||
return false;
|
||||
}
|
||||
return this.collectionsView.getRow(this.collectionsView.selection.currentIndex);
|
||||
|
|
Loading…
Reference in a new issue