We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d007b0a commit a223115Copy full SHA for a223115
1 file changed
src/legacy/core_plugins/kibana/public/visualize/np_ready/editor/editor.js
@@ -382,7 +382,7 @@ function VisualizeAppController(
382
$scope.showQueryBarTimePicker = () => {
383
// tsvb loads without an indexPattern initially (TODO investigate).
384
// hide timefilter only if timeFieldName is explicitly undefined.
385
- const hasTimeField = $scope.indexPattern ? !!$scope.indexPattern.timeFieldName : true;
+ const hasTimeField = vis.indexPattern ? !!vis.indexPattern.timeFieldName : true;
386
return vis.type.options.showTimePicker && hasTimeField;
387
};
388
0 commit comments