reverting _.has back to _.get

This commit is contained in:
Shelby Sturgis 2015-12-16 10:58:49 -08:00
parent 3269b0287c
commit 4e74cc27a8

View file

@ -46,9 +46,9 @@ define(function (require) {
// Show no results message when isZeroHits is true and it requires search
$scope.showNoResultsMessage = function () {
var requiresSearch = _.has($scope, 'vis.type.requiresSearch');
var requiresSearch = _.get($scope, 'vis.type.requiresSearch');
var isZeroHits = _.get($scope,'esResp.hits.total') === 0;
var shouldShowMessage = !_.has($scope, 'vis.params.handleNoResults');
var shouldShowMessage = !_.get($scope, 'vis.params.handleNoResults');
return Boolean(requiresSearch && isZeroHits && shouldShowMessage);
};