diff --git a/src/components/AttributionPanel.js b/src/components/AttributionPanel.js index 15063c45c4e75f6b2bf4e1f99c641e2d6489a9dc..d443a5d07dbd3bca4e9afce641eb7005f73f1ed6 100644 --- a/src/components/AttributionPanel.js +++ b/src/components/AttributionPanel.js @@ -44,7 +44,7 @@ export class AttributionPanel extends Component { <> <Typography variant="subtitle2" component="dt">{t('rights')}</Typography> { rights.map(v => ( - <Typography variant="body1" component="dd"> + <Typography variant="body1" component="dd" key={v.toString()}> <Link target="_blank" rel="noopener noreferrer" href={v}> {v} </Link> diff --git a/src/components/CanvasAnnotations.js b/src/components/CanvasAnnotations.js index 1f0946a8c28aedc318822fefd171146f810cf9d2..23150c6a39414a3d8026902e74f3e259677ad44a 100644 --- a/src/components/CanvasAnnotations.js +++ b/src/components/CanvasAnnotations.js @@ -96,7 +96,7 @@ export class CanvasAnnotations extends Component { <div> { annotation.tags.map(tag => ( - <Chip size="small" variant="outlined" label={tag} id={tag} className={classes.chip} /> + <Chip size="small" variant="outlined" label={tag} id={tag} className={classes.chip} key={tag.toString()} /> )) } </div>