mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-08 06:38:46 +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) {
|
if (!customData) {
|
||||||
return (
|
return (
|
||||||
<Container service={service}>
|
<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>
|
</Container>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -109,7 +109,7 @@ export default function Component({ service }) {
|
||||||
<Container service={service}>
|
<Container service={service}>
|
||||||
{ mappings.slice(0,4).map(mapping => <Block
|
{ mappings.slice(0,4).map(mapping => <Block
|
||||||
label={mapping.label}
|
label={mapping.label}
|
||||||
key={mapping.field}
|
key={mapping.label}
|
||||||
value={formatValue(t, mapping, getValue(mapping.field, customData))}
|
value={formatValue(t, mapping, getValue(mapping.field, customData))}
|
||||||
/>) }
|
/>) }
|
||||||
</Container>
|
</Container>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue