Skip to content

Commit f4073fc

Browse files
author
Tim Roes
committed
Allow auto interval on all fields
1 parent c54fdeb commit f4073fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/data/public/search/aggs/buckets/date_histogram.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const updateTimeBuckets = (
4545
customBuckets?: IBucketDateHistogramAggConfig['buckets']
4646
) => {
4747
const bounds =
48-
agg.params.timeRange && agg.fieldIsTimeField()
48+
agg.params.timeRange && (agg.fieldIsTimeField() || agg.params.interval === 'auto')
4949
? timefilter.calculateBounds(agg.params.timeRange)
5050
: undefined;
5151
const buckets = customBuckets || agg.buckets;

0 commit comments

Comments
 (0)