Use index as key for access schedule

Unfortuenately, the key is never populated in accessSchedule.js which cannot use that as a key for a list
This commit is contained in:
gnattu
2024-10-20 22:26:30 +08:00
parent 0ad0a6162b
commit 3ae148f193

View File

@@ -479,7 +479,7 @@ const UserParentalControl = () => {
<div className='accessScheduleList paperList'>
{accessSchedules.map((accessSchedule, index) => {
return <AccessScheduleList
key={accessSchedule.Id}
key={index}
index={index}
DayOfWeek={accessSchedule.DayOfWeek}
StartHour={accessSchedule.StartHour}