Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Lens] Fix editor react error on configuration panel #101367

Merged
merged 3 commits into from
Jun 7, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 })}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: This can be simplified to

{option.inlineElement}

now

{index !== inlineOptions.length - 1 && <EuiSpacer size="s" />}
</>
</React.Fragment>
))}
</>
)}
Expand Down