mirror of
https://github.com/nasa/openmct.git
synced 2025-01-18 18:57:01 +00:00
[Search] Fixed empty search
Pressing enter on the searchbar before putting any input would before hide the filtree when it shouldn't. Now it does not.
This commit is contained in:
parent
dc79f460e5
commit
84486f2086
@ -44,7 +44,7 @@ define(function () {
|
||||
var inputText = $scope.ngModel.input;
|
||||
|
||||
// Update whether the file tree should be displayed
|
||||
if (inputText === '') {
|
||||
if (inputText === '' || inputText === undefined) {
|
||||
$scope.ngModel.search = false;
|
||||
} else {
|
||||
$scope.ngModel.search = true;
|
||||
|
Loading…
Reference in New Issue
Block a user