Fixed error "Cannot read property 'clear' of undefined" thrown if search option set to `false`.
This commit is contained in:
parent
23c580a2ec
commit
ca21876fa3
|
@ -145,7 +145,9 @@ treemode.set = function (json, name) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// clear search
|
// clear search
|
||||||
this.searchBox.clear();
|
if (this.searchBox) {
|
||||||
|
this.searchBox.clear();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1147,4 +1149,4 @@ module.exports = [
|
||||||
mixin: treemode,
|
mixin: treemode,
|
||||||
data: 'json'
|
data: 'json'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue