Skip to content

Commit

Permalink
remove disable method
Browse files Browse the repository at this point in the history
  • Loading branch information
nickofthyme committed Mar 2, 2021
1 parent 52b7290 commit 32dc89c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/plugins/vis_type_xy/public/to_ast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ export const toExpressionAst: VisToExpressionAst<VisParams> = async (vis, params
const responseAggs = vis.data.aggs?.getResponseAggs().filter(({ enabled }) => enabled) ?? [];

if (dimensions.x) {
getTimefilter().disableTimeRangeSelector();

const xAgg = responseAggs[dimensions.x.accessor] as any;
if (xAgg.type.name === BUCKET_TYPES.DATE_HISTOGRAM) {
(dimensions.x.params as DateHistogramParams).date = true;
Expand Down

0 comments on commit 32dc89c

Please sign in to comment.