mirror of https://github.com/langgenius/dify.git
fix: apply suggestions
This commit is contained in:
parent
6943a379c9
commit
0edf06329f
|
|
@ -246,7 +246,7 @@ 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))
|
||||
if (!data.cron_expression || !isValidCronExpression(data.cron_expression))
|
||||
return '--'
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue