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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user