Fix use of onlyWhenOnline

This commit is contained in:
Dane Everitt 2021-05-01 11:25:35 -07:00
parent ea057cb1cb
commit 84483d36ee
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -79,7 +79,8 @@ const EditScheduleModal = ({ schedule }: Props) => {
dayOfMonth: schedule?.cron.dayOfMonth || '*', dayOfMonth: schedule?.cron.dayOfMonth || '*',
month: schedule?.cron.month || '*', month: schedule?.cron.month || '*',
dayOfWeek: schedule?.cron.dayOfWeek || '*', dayOfWeek: schedule?.cron.dayOfWeek || '*',
enabled: schedule ? schedule.isActive : true, enabled: schedule?.isActive ?? true,
onlyWhenOnline: schedule?.onlyWhenOnline ?? true,
} as Values} } as Values}
> >
{({ isSubmitting }) => ( {({ isSubmitting }) => (