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