Skip to content
Snippets Groups Projects
Commit dd7cf836 authored by echicken's avatar echicken :chicken:
Browse files

Don't crash if you don't got no tree yet. Fixes #546.

parent d421ff37
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -414,7 +414,7 @@ var Typeahead = function (options) {
case KEY_UP:
case KEY_DOWN:
//if (typeof display.tree !== 'undefined') {
if (display.tree.items.length > 1) {
if (display.tree !== undefined && display.tree.items.length > 1) {
display.tree.getcmd(key);
}
break;
......
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