fix: add a consistent key to the day ranges list (#4401)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
pull/4432/head^2
Nafees Nazik 2022-09-14 17:00:25 +05:30 committed by GitHub
parent 09da911bf9
commit 5c72aa3497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ const DayRanges = ({
return ( return (
<> <>
{fields.map((field: { id: string }, index: number) => ( {fields.map((field: { id: string }, index: number) => (
<div key={field.id} className="mt-2 mb-2 flex rtl:space-x-reverse sm:mt-0"> <div key={field.id + name} className="mt-2 mb-2 flex rtl:space-x-reverse sm:mt-0">
<TimeRangeField name={`${name}.${index}`} /> <TimeRangeField name={`${name}.${index}`} />
{index === 0 && ( {index === 0 && (
<div className="hidden sm:inline"> <div className="hidden sm:inline">