diff --git a/client/src/components/dynamic-groups/cron-job-builder.tsx b/client/src/components/dynamic-groups/cron-job-builder.tsx index e3b8fe5..7832d20 100644 --- a/client/src/components/dynamic-groups/cron-job-builder.tsx +++ b/client/src/components/dynamic-groups/cron-job-builder.tsx @@ -116,8 +116,8 @@ export const CronJobBuilder: React.FC = ({ const day = schedule.dayOfMonth || 1; cronExpression = `${schedule.minute} ${schedule.hour} ${day} * *`; break; - case 'custom': - // For custom schedules, if there's no existing cron expression, use a default + default: + // For any other schedules, if there's no existing cron expression, use a default cronExpression = schedule.cronExpression || '0 0 * * *'; break; } @@ -594,6 +594,35 @@ export const CronJobBuilder: React.FC = ({
+
+ + +
{Array.from({ length: 60 }, (_, i) => i).map((minute) => ( + +
{Array.from({ length: 24 }, (_, i) => i).map((hour) => (