Skip to content

Commit a223115

Browse files
committed
show timepicker in timelion and tsvb (#58857)
1 parent d007b0a commit a223115

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/legacy/core_plugins/kibana/public/visualize/np_ready/editor

src/legacy/core_plugins/kibana/public/visualize/np_ready/editor/editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ function VisualizeAppController(
382382
$scope.showQueryBarTimePicker = () => {
383383
// tsvb loads without an indexPattern initially (TODO investigate).
384384
// hide timefilter only if timeFieldName is explicitly undefined.
385-
const hasTimeField = $scope.indexPattern ? !!$scope.indexPattern.timeFieldName : true;
385+
const hasTimeField = vis.indexPattern ? !!vis.indexPattern.timeFieldName : true;
386386
return vis.type.options.showTimePicker && hasTimeField;
387387
};
388388

0 commit comments

Comments
 (0)