mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[aggTypes/dateHistogram] on field changes clear the interval if needed
This commit is contained in:
parent
3c28b3d870
commit
e88179f15a
1 changed files with 4 additions and 0 deletions
|
@ -59,6 +59,10 @@ define(function (require) {
|
|||
return agg.vis.indexPattern.timeFieldName;
|
||||
},
|
||||
onChange: function (agg) {
|
||||
if (_.get(agg, 'params.interval.val') === 'auto' && !agg.fieldIsTimeField()) {
|
||||
delete agg.params.interval;
|
||||
}
|
||||
|
||||
setBounds(agg, true);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue