generated from Luis/nextjs-python-web-template
added key to iteration in summary card
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user