Skip to content

Commit

Permalink
chore: add key attribute to homepage components and remove superfluou…
Browse files Browse the repository at this point in the history
…s deep-merge
  • Loading branch information
mathiasschopmans committed Mar 25, 2024
1 parent 7c08e52 commit 7dfd28b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,4 @@ if (userConfig.labels)
if (userConfig.toggles)
config.toggles = { ...defaultConfig.toggles, ...userConfig.toggles };

if (userConfig.sections)
config.sections = { ...defaultConfig.sections, ...userConfig.sections };

export default config;
9 changes: 7 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const Home: CustomPage = () => {
return (
getToggle("showChart") && (
<Radar
key={section}
size={chartConfig.size}
quadrants={quadrants}
rings={rings}
Expand All @@ -54,11 +55,15 @@ const Home: CustomPage = () => {
case "tags":
return (
getToggle("showTagFilter") &&
tags.length > 0 && <Tags tags={tags} activeTag={tag} />
tags.length > 0 && (
<Tags key={section} tags={tags} activeTag={tag} />
)
);
case "list":
return (
getToggle("showQuadrantList") && <QuadrantList items={items} />
getToggle("showQuadrantList") && (
<QuadrantList key={section} items={items} />
)
);
default:
return null;
Expand Down

0 comments on commit 7dfd28b

Please sign in to comment.