Skip to content

Commit

Permalink
show timepicker in timelion and tsvb (#58857) (#59068)
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 authored Mar 3, 2020
1 parent 6027733 commit 9d09bb4
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 9d09bb4

Please sign in to comment.