diff --git a/web/app/components/workflow/nodes/trigger-schedule/utils/execution-time-calculator.ts b/web/app/components/workflow/nodes/trigger-schedule/utils/execution-time-calculator.ts index db050d1837..98aa334aa4 100644 --- a/web/app/components/workflow/nodes/trigger-schedule/utils/execution-time-calculator.ts +++ b/web/app/components/workflow/nodes/trigger-schedule/utils/execution-time-calculator.ts @@ -244,6 +244,12 @@ export const getFormattedExecutionTimes = (data: ScheduleTriggerNodeType, count: } export const getNextExecutionTime = (data: ScheduleTriggerNodeType): string => { + // Return placeholder for cron mode with empty or invalid expression + if (data.mode === 'cron') { + if (!data.cron_expression || data.cron_expression.trim() === '' || !isValidCronExpression(data.cron_expression)) + return '--' + } + const times = getFormattedExecutionTimes(data, 1) if (times.length === 0) { const userCurrentTime = getUserTimezoneCurrentTime(data.timezone)