fix row colour rendering

This commit is contained in:
Matt Fiddaman
2025-04-14 16:31:47 -04:00
parent 8aacab1f78
commit de0abff345

View File

@@ -58,7 +58,7 @@ const Schedule = ({ data }) => {
{data?.length > 0 &&
data.map((row, i) => {
return (
<ScheduleRow bg={i % 2 === 1} key={row.id}>
<ScheduleRow bg={i % 2 === 1} key={`${row.id}-${i}`}>
<ScheduleCell width={widths[0]}>{row.name}</ScheduleCell>
<ScheduleCell width={widths[1]}>{row.date}</ScheduleCell>
<ScheduleCell width={widths[2]}>{row.startTime}</ScheduleCell>