Skip to content

Commit 4e6effb

Browse files
dej611kibanamachine
andcommitted
[Lens] Fix editor react error on configuration panel (#101367)
* 🐛 Fix react error * 👌 Apply feedback Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
1 parent fb2b4e5 commit 4e6effb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/advanced_options.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ export function AdvancedOptions(props: {
7373
<>
7474
<EuiSpacer size="s" />
7575
{inlineOptions.map((option, index) => (
76-
<>
77-
{React.cloneElement(option.inlineElement!, { key: option.dataTestSubj })}
76+
<React.Fragment key={option.dataTestSubj}>
77+
{option.inlineElement}
7878
{index !== inlineOptions.length - 1 && <EuiSpacer size="s" />}
79-
</>
79+
</React.Fragment>
8080
))}
8181
</>
8282
)}

0 commit comments

Comments
 (0)