From 5b3132861ba526558367e8f38fb7bf7028ed5f9d Mon Sep 17 00:00:00 2001 From: lehuygiang28 Date: Thu, 22 Aug 2024 18:01:05 +0700 Subject: [PATCH] feat(fe): :zap: add default for cron expression --- apps/fe/src/components/form/task-form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/fe/src/components/form/task-form.tsx b/apps/fe/src/components/form/task-form.tsx index 764a431..e71bc61 100644 --- a/apps/fe/src/components/form/task-form.tsx +++ b/apps/fe/src/components/form/task-form.tsx @@ -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), });