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

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Nafees Nazikandkodiakhq[bot] authored and GitHub committed 2022-09-14 17:00:25 +05:30
1 parent 09da911bf9
commit 5c72aa3497
1 file changed
+1 -1
@@ -92,7 +92,7 @@ const DayRanges = ({
return (
<>
{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}`} />
{index === 0 && (
<div className="hidden sm:inline">