feat(elasticsearch): update pipeline aggs if type change

make it possible to switch between different pipeline
aggregates without causing problms in the ui
This commit is contained in:
carl bergquist
2015-12-10 17:01:29 +01:00
parent 85094fc74d
commit 0f65cb2b79
2 changed files with 2 additions and 3 deletions

View File

@@ -173,9 +173,7 @@ function (queryDef) {
if (queryDef.isPipelineAgg(metric)) {
if (metric.pipelineAgg && /^\d*$/.test(metric.pipelineAgg)) {
metricAgg = {
buckets_path: metric.pipelineAgg,
};
metricAgg = { buckets_path: metric.pipelineAgg };
} else {
continue;
}