Skip to content

Commit

Permalink
feat(fe): ⚡ add default for cron expression
Browse files Browse the repository at this point in the history
  • Loading branch information
lehuygiang28 committed Aug 22, 2024
1 parent 058de7b commit 5b31328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/fe/src/components/form/task-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function TaskForm({ mode, defaultValues, onSubmit, formProps }: TaskFormP
});

const [cronValues, dispatchCronValues] = useCronReducer({
defaultValue: defaultValues?.cron,
defaultValue: defaultValues?.cron ?? '*/5 * * * *',
setFormValue: (value) => setValue('cron', value),
});

Expand Down

0 comments on commit 5b31328

Please sign in to comment.