Skip to content

Commit

Permalink
fix: add a consistent key to the day ranges list (#4401)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
G3root and kodiakhq[bot] committed Sep 14, 2022
1 parent 09da911 commit 5c72aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/features/schedules/components/Schedule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 5c72aa3

Please sign in to comment.