Skip to content

Commit 812ef89

Browse files
committed
fix serialization of defined intervals
1 parent e26b534 commit 812ef89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/plugins/data/common/search/aggs/buckets/histogram.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export const getHistogramBucketAgg = ({
159159
serialize(val, aggConfig) {
160160
// store actually used auto interval in serialized agg config to be able to read it from the result data table meta information
161161
const autoBounds = aggConfig?.getAutoBounds();
162-
if (aggConfig && autoBounds) {
162+
if (val === autoInterval && aggConfig && autoBounds) {
163163
const usedInterval = calculateHistogramInterval({
164164
values: autoBounds,
165165
interval: aggConfig.params.interval,

0 commit comments

Comments
 (0)