mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-01 21:13:39 +01:00
Fix duplicate keys on customapi widget
This commit is contained in:
parent
8a520e07a5
commit
cde8c658ae
@ -100,7 +100,7 @@ export default function Component({ service }) {
|
||||
if (!customData) {
|
||||
return (
|
||||
<Container service={service}>
|
||||
{ mappings.slice(0,4).map(item => <Block label={item.label} key={item.field} />) }
|
||||
{ mappings.slice(0,4).map(item => <Block label={item.label} key={item.label} />) }
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
@ -109,7 +109,7 @@ export default function Component({ service }) {
|
||||
<Container service={service}>
|
||||
{ mappings.slice(0,4).map(mapping => <Block
|
||||
label={mapping.label}
|
||||
key={mapping.field}
|
||||
key={mapping.label}
|
||||
value={formatValue(t, mapping, getValue(mapping.field, customData))}
|
||||
/>) }
|
||||
</Container>
|
||||
|
Loading…
x
Reference in New Issue
Block a user