[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:
shale 2015-07-27 14:12:49 -07:00
parent dc79f460e5
commit 84486f2086

View File

@ -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;