Skip to content

Commit

Permalink
Fix v-for keying which caused tab changes when moving to small screen
Browse files Browse the repository at this point in the history
  • Loading branch information
ajuvonen committed May 28, 2024
1 parent e8cc7dc commit 93167f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/WeekCalendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const getDayChipTitle = (intensity: Intensity, count: number) =>
<v-tabs v-model="activeDay" grow center-active>
<v-tab
v-for="({weekDay, trainings, maxIntensity}, dayIndex) in tabContent"
:key="weekDay"
:key="dayIndex"
:value="dayIndex"
:data-test-id="`week-${weekIndex}-calendar-tab-${dayIndex}`"
>
Expand Down

0 comments on commit 93167f0

Please sign in to comment.