mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
reverting _.has back to _.get
This commit is contained in:
parent
3269b0287c
commit
4e74cc27a8
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue