From 17e488eb35af4ab2f321e756b8c18fbdad26f308 Mon Sep 17 00:00:00 2001 From: Marco Liberati Date: Mon, 7 Jun 2021 16:53:27 +0200 Subject: [PATCH] [Lens] Fix editor react error on configuration panel (#101367) * :bug: Fix react error * :ok_hand: Apply feedback Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../dimension_panel/advanced_options.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/advanced_options.tsx b/x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/advanced_options.tsx index c8676faad0ee..252772903809 100644 --- a/x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/advanced_options.tsx +++ b/x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/advanced_options.tsx @@ -73,10 +73,10 @@ export function AdvancedOptions(props: { <> {inlineOptions.map((option, index) => ( - <> - {React.cloneElement(option.inlineElement!, { key: option.dataTestSubj })} + + {option.inlineElement} {index !== inlineOptions.length - 1 && } - + ))} )}