diff --git a/resources/scripts/components/server/schedules/EditScheduleModal.tsx b/resources/scripts/components/server/schedules/EditScheduleModal.tsx index e00cef04a..57602f2ed 100644 --- a/resources/scripts/components/server/schedules/EditScheduleModal.tsx +++ b/resources/scripts/components/server/schedules/EditScheduleModal.tsx @@ -79,7 +79,8 @@ const EditScheduleModal = ({ schedule }: Props) => { dayOfMonth: schedule?.cron.dayOfMonth || '*', month: schedule?.cron.month || '*', dayOfWeek: schedule?.cron.dayOfWeek || '*', - enabled: schedule ? schedule.isActive : true, + enabled: schedule?.isActive ?? true, + onlyWhenOnline: schedule?.onlyWhenOnline ?? true, } as Values} > {({ isSubmitting }) => (