added key to iteration in summary card

This commit is contained in:
sara-pervana
2023-11-21 23:53:13 +01:00
committed by Luis-Hebendanz
parent b3f7d56193
commit 989452d905

View File

@@ -44,9 +44,9 @@ const SummaryDetails = ({
action={<CopyToClipboard contentRef={cardContentRef} />} action={<CopyToClipboard contentRef={cardContentRef} />}
/> />
<CardContent ref={cardContentRef}> <CardContent ref={cardContentRef}>
{entity.details.map((info: EntityDetails) => { {entity.details.map((info: EntityDetails, index: number) => {
return ( return (
<Typography color="text.primary" gutterBottom> <Typography key={index} color="text.primary" gutterBottom>
{info.label}: <code>{info.value}</code> {info.label}: <code>{info.value}</code>
</Typography> </Typography>
); );