Skip to content

Commit

Permalink
fix non-unique key warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rushtong committed Nov 9, 2023
1 parent 634ccfe commit 571aec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/dac_dataset_table/DACDatasetTableCellData.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export function dataCustodianCellData({dataset, label = 'dataCustodianCellData'}
}

export function dataUseCellData({dataset, label = 'dataUseCellData'}) {
const translationList = map((translation) => {
return <li key={translation.code}>{translation.code}: {translation.description}</li>;
const translationList = map((translation, index) => {
return <li key={`${translation.code}_${index}`}>{translation.code}: {translation.description}</li>;
})(dataset.translations);
const display =
<div className={style['cell-data']}>
Expand Down

0 comments on commit 571aec8

Please sign in to comment.