added key to iteration in summary card
Some checks failed
checks-impure / test (pull_request) Successful in 25s
checks / test (pull_request) Failing after 1m59s

This commit is contained in:
sara-pervana
2023-11-21 23:53:13 +01:00
parent c53fdb7d86
commit 9179e4c610

View File

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