add key props
This commit is contained in:
parent
e2dc4c6b8f
commit
7a412fdb0d
|
@ -264,7 +264,7 @@ export function PinnedItems(props: {
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{pinned.map((element, index) => (
|
{pinned.map((element, index) => (
|
||||||
<div className="relative mb-4">
|
<div className="relative mb-4" key={element.key}>
|
||||||
{element}
|
{element}
|
||||||
|
|
||||||
{editMode && <CrossIcon onClick={() => onDeleteClicked(index)} />}
|
{editMode && <CrossIcon onClick={() => onDeleteClicked(index)} />}
|
||||||
|
|
|
@ -277,6 +277,7 @@ function renderSections(
|
||||||
if (id === 'featured') {
|
if (id === 'featured') {
|
||||||
return (
|
return (
|
||||||
<FeaturedSection
|
<FeaturedSection
|
||||||
|
key={id}
|
||||||
globalConfig={globalConfig}
|
globalConfig={globalConfig}
|
||||||
pinned={pinned}
|
pinned={pinned}
|
||||||
isAdmin={isAdmin}
|
isAdmin={isAdmin}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user