forked from Alex/Pterodactyl-Panel
Fix use of onlyWhenOnline
This commit is contained in:
parent
ea057cb1cb
commit
84483d36ee
@ -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 New Issue
Block a user