Skip to content

Commit

Permalink
🐛 Fix react error
Browse files Browse the repository at this point in the history
  • Loading branch information
dej611 committed Jun 4, 2021
1 parent e4f7447 commit f14c2c6
Showing 1 changed file with 2 additions and 2 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.Fragment key={option.dataTestSubj}>
{React.cloneElement(option.inlineElement!, { key: option.dataTestSubj })}
{index !== inlineOptions.length - 1 && <EuiSpacer size="s" />}
</>
</React.Fragment>
))}
</>
)}
Expand Down

0 comments on commit f14c2c6

Please sign in to comment.