Skip to content

Commit

Permalink
fix serialization of defined intervals
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Feb 16, 2021
1 parent e26b534 commit 812ef89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/data/common/search/aggs/buckets/histogram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export const getHistogramBucketAgg = ({
serialize(val, aggConfig) {
// store actually used auto interval in serialized agg config to be able to read it from the result data table meta information
const autoBounds = aggConfig?.getAutoBounds();
if (aggConfig && autoBounds) {
if (val === autoInterval && aggConfig && autoBounds) {
const usedInterval = calculateHistogramInterval({
values: autoBounds,
interval: aggConfig.params.interval,
Expand Down

0 comments on commit 812ef89

Please sign in to comment.