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

View File

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