Skip to content

Commit

Permalink
show timepicker in timelion and tsvb (elastic#58857)
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 authored and dgieselaar committed Mar 3, 2020
1 parent 17d836d commit b1ed910
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ function VisualizeAppController(
$scope.showQueryBarTimePicker = () => {
// tsvb loads without an indexPattern initially (TODO investigate).
// hide timefilter only if timeFieldName is explicitly undefined.
const hasTimeField = $scope.indexPattern ? !!$scope.indexPattern.timeFieldName : true;
const hasTimeField = vis.indexPattern ? !!vis.indexPattern.timeFieldName : true;
return vis.type.options.showTimePicker && hasTimeField;
};

Expand Down

0 comments on commit b1ed910

Please sign in to comment.