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

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

parent 02bc1bb8
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -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