Skip to content

Conversation

rsergeenko
Copy link
Contributor

No description provided.

@rsergeenko rsergeenko self-assigned this Nov 26, 2021
items.map((item: string, index: number) => (
<div key={item}>
items.map((item: string | JSX.Element, index: number) => (
<div key={typeof item === 'string' ? item : item?.props?.children}>
Copy link
Contributor

Choose a reason for hiding this comment

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

I think better use lodash isString()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@rsergeenko rsergeenko merged commit 0b29adf into main Nov 26, 2021
@rsergeenko rsergeenko deleted the feature/RI-782_shortcuts branch November 26, 2021 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants