Skip to content

Commit

Permalink
Fix console warnings (#2451)
Browse files Browse the repository at this point in the history
* fix console warning for spacing used in grid item

* fix console warning for missing keys
  • Loading branch information
Magnusrm authored Sep 17, 2024
1 parent b65def9 commit 395c9f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/layout/Group/GroupSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const ChildComponents = ({ componentNode, hierarchyLevel, summaryOverride }: Gro
return (
<Grid
item
spacing={6}
key={child?.id}
>
<GroupSummary
Expand Down
9 changes: 7 additions & 2 deletions src/layout/Tabs/TabsSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,14 @@ export const TabsSummary = ({ componentNode }: TabsSummaryProps) => {
>
{tabs.map((tab, index) => (
<>
{index != 0 && <hr className={classes.tabDivider} />}
{index != 0 && (
<hr
key={`${tab.title}-${index}-divider`}
className={classes.tabDivider}
/>
)}
<div
key={tab.id}
key={`${tab.title}-${index}`}
className={classes.tabWrapper}
>
<Heading
Expand Down

0 comments on commit 395c9f0

Please sign in to comment.