add key props

This commit is contained in:
mantikoros 2022-10-12 17:29:56 -05:00
parent e2dc4c6b8f
commit 7a412fdb0d
2 changed files with 2 additions and 1 deletions

View File

@ -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)} />}

View File

@ -277,6 +277,7 @@ function renderSections(
if (id === 'featured') {
return (
<FeaturedSection
key={id}
globalConfig={globalConfig}
pinned={pinned}
isAdmin={isAdmin}