Use daysofweek and hours as key
This is better and any sane person should not set multiple schdules to be exactly the same
This commit is contained in:
@@ -479,7 +479,7 @@ const UserParentalControl = () => {
|
||||
<div className='accessScheduleList paperList'>
|
||||
{accessSchedules.map((accessSchedule, index) => {
|
||||
return <AccessScheduleList
|
||||
key={index}
|
||||
key={`${accessSchedule.DayOfWeek}${accessSchedule.StartHour}${accessSchedule.EndHour}`}
|
||||
index={index}
|
||||
DayOfWeek={accessSchedule.DayOfWeek}
|
||||
StartHour={accessSchedule.StartHour}
|
||||
|
||||
Reference in New Issue
Block a user