Skip to content

Commit 14ba8c5

Browse files
committed
Key fixes
1 parent 95643d3 commit 14ba8c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dashboard/src/storage/StorageList.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const RowView = ({name, stateColor,localPaths, storageClass, storageClassIsDefau
4646
</Accordion>
4747
</Table.Cell>
4848
<Table.Cell>
49-
{localPaths.map((item) => <code>{item}</code>)}
49+
{localPaths.map((item, index) => <code key={index}>{item}</code>)}
5050
</Table.Cell>
5151
<Table.Cell>
5252
{storageClass}
@@ -75,7 +75,7 @@ const RowView = ({name, stateColor,localPaths, storageClass, storageClassIsDefau
7575

7676
const VolumesRowView = ({name}) => (
7777
<Table.Row>
78-
<Table.Cell colspan="5">
78+
<Table.Cell colSpan="5">
7979
<Header sub>Volumes</Header>
8080
<VolumeList storageName={name}/>
8181
</Table.Cell>
@@ -111,7 +111,7 @@ class RowComponent extends Component {
111111

112112
render() {
113113
return [<RowView
114-
key={this.props.name}
114+
key="datarow"
115115
name={this.props.name}
116116
localPaths={this.props.localPaths}
117117
stateColor={this.props.stateColor}
@@ -123,7 +123,7 @@ class RowComponent extends Component {
123123
expanded={this.state.expanded}
124124
/>,
125125
this.state.expanded && <VolumesRowView
126-
key={`${this.props.name}-vol`}
126+
key="volrow"
127127
name={this.props.name}
128128
expanded={this.state.expanded}
129129
toggleExpand={this.onToggleExpand}

0 commit comments

Comments
 (0)