Fix use of onlyWhenOnline
This commit is contained in:
parent
ea057cb1cb
commit
84483d36ee
1 changed files with 2 additions and 1 deletions
|
@ -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 }) => (
|
||||||
|
|
Loading…
Reference in a new issue