mirror of
https://github.com/zotero/zotero.git
synced 2026-10-08 03:08:19 +00:00
Fix error when closing window caused by expand/collapse code
This commit is contained in:
parent
719ec8c694
commit
1f7f8bb7e1
1 changed files with 2 additions and 1 deletions
|
|
@ -46,8 +46,9 @@ Zotero.CollectionTreeView = function()
|
|||
*/
|
||||
Zotero.CollectionTreeView.prototype.setTree = function(treebox)
|
||||
{
|
||||
if(this._treebox)
|
||||
if (this._treebox || !treebox) {
|
||||
return;
|
||||
}
|
||||
this._treebox = treebox;
|
||||
|
||||
// Add a keypress listener for expand/collapse
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue