chore: add key attribute to homepage components and remove superfluous deep-merge

This commit is contained in:
Mathias Schopmans
2024-03-25 09:09:39 +01:00
committed by Mathias Schopmans
parent 7c08e520fc
commit 7dfd28bdb3
2 changed files with 7 additions and 5 deletions

View File

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

View File

@@ -44,6 +44,7 @@ const Home: CustomPage = () => {
return (
getToggle("showChart") && (
<Radar
key={section}
size={chartConfig.size}
quadrants={quadrants}
rings={rings}
@@ -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;