fix: cleanup

This commit is contained in:
Christel Westerberg
2024-02-13 16:06:37 +01:00
parent 4b193541b2
commit 367dffc41d
7 changed files with 21 additions and 14 deletions

View File

@@ -17,7 +17,12 @@ export default function Aside({ blocks }: AsideProps) {
const type = block.__typename
switch (type) {
case AsideTypenameEnum.CurrentBlocksPageAsideContact:
return <Contacts contacts={block.contact.contactConnection.edges} />
return (
<Contacts
contacts={block.contact.contactConnection.edges}
key={`block-${idx}`}
/>
)
case AsideTypenameEnum.CurrentBlocksPageAsidePuff:
return (
<Puffs