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
parent
09da911bf9
commit
5c72aa3497
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue