1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Add React.Fragment with key property to entity settings navigation (#3087)

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala 2021-06-17 13:22:52 +03:00 committed by GitHub
parent c3c944cd30
commit e64f90332e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,8 +85,8 @@ export class EntitySettings extends React.Component<Props> {
<>
<h2>{this.entity.metadata.name}</h2>
<Tabs className="flex column" scrollable={false} onChange={this.onTabChange} value={this.activeTab}>
{ groups.map((group) => (
<>
{ groups.map((group, groupIndex) => (
<React.Fragment key={`group-${groupIndex}`}>
<div className="header">{group[0]}</div>
{ group[1].map((setting, index) => (
<Tab
@ -96,7 +96,7 @@ export class EntitySettings extends React.Component<Props> {
data-testid={`${setting.id}-tab`}
/>
))}
</>
</React.Fragment>
))}
</Tabs>
</>