Skip to content

Commit

Permalink
satisfy proptype check (#58538) (#58585)
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 authored Feb 26, 2020
1 parent 9e35c73 commit 853b2a5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,9 @@ function discoverController(
$scope.opts = {
// number of records to fetch, then paginate through
sampleSize: config.get('discover:sampleSize'),
timefield:
indexPatternsUtils.isDefault($scope.indexPattern) && $scope.indexPattern.timeFieldName,
timefield: indexPatternsUtils.isDefault($scope.indexPattern)
? $scope.indexPattern.timeFieldName
: undefined,
savedSearch: savedSearch,
indexPatternList: $route.current.locals.savedObjects.ip.list,
};
Expand Down

0 comments on commit 853b2a5

Please sign in to comment.