Skip to content
Snippets Groups Projects
Commit 32ebf886 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Address occasional TypeError: this.current is undefined

parent 8fd3f620
No related branches found
No related tags found
No related merge requests found
......@@ -392,7 +392,7 @@ Tree.prototype.getcmd = function(cmd) {
retval = this.deleteItem();
break;
case this.__commands__.SELECT:
if(this.__properties__.index >= 0)
if(this.current !== undefined && this.__properties__.index >= 0)
retval = this.current.action();
else
retval = this.close();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment