Skip to content

Commit

Permalink
Fix use of onlyWhenOnline
Browse files Browse the repository at this point in the history
  • Loading branch information
DaneEveritt committed May 1, 2021
1 parent ea057cb commit 84483d3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => (
Expand Down

0 comments on commit 84483d3

Please sign in to comment.