mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 14:18:47 +00:00
Fix duplicate keys on customapi widget
This commit is contained in:
parent
8a520e07a5
commit
cde8c658ae
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue