Skip to content

Commit 84483d3

Browse files
committed
Fix use of onlyWhenOnline
1 parent ea057cb commit 84483d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resources/scripts/components/server/schedules/EditScheduleModal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ const EditScheduleModal = ({ schedule }: Props) => {
7979
dayOfMonth: schedule?.cron.dayOfMonth || '*',
8080
month: schedule?.cron.month || '*',
8181
dayOfWeek: schedule?.cron.dayOfWeek || '*',
82-
enabled: schedule ? schedule.isActive : true,
82+
enabled: schedule?.isActive ?? true,
83+
onlyWhenOnline: schedule?.onlyWhenOnline ?? true,
8384
} as Values}
8485
>
8586
{({ isSubmitting }) => (

0 commit comments

Comments
 (0)