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:
parent
c3c944cd30
commit
e64f90332e
@ -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>
|
||||
</>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user