diff --git a/packages/features/schedules/components/Schedule.tsx b/packages/features/schedules/components/Schedule.tsx index 8972cb67a9..6d41f6aab7 100644 --- a/packages/features/schedules/components/Schedule.tsx +++ b/packages/features/schedules/components/Schedule.tsx @@ -556,60 +556,55 @@ const CopyTimes = ({

{t("copy_times_to")}

  1. - + { + if (e.target.checked) { + setSelected([0, 1, 2, 3, 4, 5, 6]); + } else if (!e.target.checked) { + setSelected([]); + } + }} + ref={(ref) => { + if (ref) { + itteratablesByKeyRef.current.push(ref as HTMLInputElement); + } + }} + />
  2. {weekdayNames(i18n.language, weekStart).map((weekday, num) => { const weekdayIndex = (num + weekStart) % 7; return (
  3. - + { + if (e.target.checked && !selected.includes(weekdayIndex)) { + setSelected(selected.concat([weekdayIndex])); + } else if (!e.target.checked && selected.includes(weekdayIndex)) { + setSelected(selected.filter((item) => item !== weekdayIndex)); + } + }} + ref={(ref) => { + if (ref && disabled !== weekdayIndex) { + itteratablesByKeyRef.current.push(ref as HTMLInputElement); + } + }} + />
  4. ); })}

-
+