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 c8676faad0eea..252772903809f 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 && }
- >
+
))}
>
)}