Skip to content

Commit

Permalink
[Lens] Fix editor react error on configuration panel (#101367)
Browse files Browse the repository at this point in the history
* 🐛 Fix react error

* 👌 Apply feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
dej611 and kibanamachine committed Jun 7, 2021
1 parent dc1d98b commit 17e488e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ export function AdvancedOptions(props: {
<>
<EuiSpacer size="s" />
{inlineOptions.map((option, index) => (
<>
{React.cloneElement(option.inlineElement!, { key: option.dataTestSubj })}
<React.Fragment key={option.dataTestSubj}>
{option.inlineElement}
{index !== inlineOptions.length - 1 && <EuiSpacer size="s" />}
</>
</React.Fragment>
))}
</>
)}
Expand Down

0 comments on commit 17e488e

Please sign in to comment.