From 136460d3694e3783370a71d3d25090a1927fcb3e Mon Sep 17 00:00:00 2001 From: Giordano Ricci Date: Wed, 14 Apr 2021 15:57:29 +0100 Subject: [PATCH] Elasticsearch: Force re-rendering of each editor row type change (#32993) --- .../components/QueryEditor/BucketAggregationsEditor/index.tsx | 2 +- .../components/QueryEditor/MetricAggregationsEditor/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/plugins/datasource/elasticsearch/components/QueryEditor/BucketAggregationsEditor/index.tsx b/public/app/plugins/datasource/elasticsearch/components/QueryEditor/BucketAggregationsEditor/index.tsx index 841d12e634a..0f8dc087495 100644 --- a/public/app/plugins/datasource/elasticsearch/components/QueryEditor/BucketAggregationsEditor/index.tsx +++ b/public/app/plugins/datasource/elasticsearch/components/QueryEditor/BucketAggregationsEditor/index.tsx @@ -21,7 +21,7 @@ export const BucketAggregationsEditor: FunctionComponent = ({ nextId }) = <> {bucketAggs!.map((bucketAgg, index) => ( 1 && (() => dispatch(removeBucketAggregation(bucketAgg.id)))} > diff --git a/public/app/plugins/datasource/elasticsearch/components/QueryEditor/MetricAggregationsEditor/index.tsx b/public/app/plugins/datasource/elasticsearch/components/QueryEditor/MetricAggregationsEditor/index.tsx index 8c81bcc81be..73ac3ea9e21 100644 --- a/public/app/plugins/datasource/elasticsearch/components/QueryEditor/MetricAggregationsEditor/index.tsx +++ b/public/app/plugins/datasource/elasticsearch/components/QueryEditor/MetricAggregationsEditor/index.tsx @@ -22,7 +22,7 @@ export const MetricAggregationsEditor: FunctionComponent = ({ nextId }) = <> {metrics?.map((metric, index) => (