refactor: update key usage in components for improved rendering

This commit is contained in:
swve 2025-03-22 14:23:19 +01:00
parent 9db6b605c5
commit 95c3550c42
3 changed files with 14 additions and 14 deletions

View file

@ -54,7 +54,7 @@ function ActivityIndicators(props: Props) {
<div className="grid grid-flow-col justify-stretch space-x-6">
{course.chapters.map((chapter: any) => {
return (
<>
<React.Fragment key={chapter.id || `chapter-${chapter.name}`}>
<div className="grid grid-flow-col justify-stretch space-x-2">
{chapter.activities.map((activity: any) => {
return (
@ -84,7 +84,7 @@ function ActivityIndicators(props: Props) {
)
})}
</div>
</>
</React.Fragment>
)
})}
</div>