Skip to content

Commit

Permalink
Merge pull request #1091 from oskarhane/sysinfo-key
Browse files Browse the repository at this point in the history
Fix row key issue on :sysinfo table when connected to a cluster
  • Loading branch information
oskarhane authored May 4, 2020
2 parents f64a157 + 82db5a8 commit 2ca4cb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/browser/components/Tables.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ export const SysInfoTableEntry = ({
if (values) {
return (
<StyledTr key="values-row">
{values.map(value => {
{values.map((value, rowIndex) => {
const mappedValue = getValue(value, mapper)
const val = mappedValue || missingValuePlaceholder
return mappedValue || !optional ? (
<StyledTd key={toKeyString(val)}>{val}</StyledTd>
<StyledTd key={toKeyString(`${val}${rowIndex}`)}>{val}</StyledTd>
) : null
})}
</StyledTr>
Expand Down

0 comments on commit 2ca4cb1

Please sign in to comment.