refactor(workflow): remove timezone required validation as it is auto-filled by use-config

This commit is contained in:
lyzno1 2025-10-13 17:12:43 +08:00
parent 378c2afcd3
commit 3b3963b055
No known key found for this signature in database
1 changed files with 1 additions and 2 deletions

View File

@ -122,8 +122,7 @@ const nodeDefault: NodeDefault<ScheduleTriggerNodeType> = {
if (!errorMessages && !payload.mode)
errorMessages = t(`${i18nPrefix}.fieldRequired`, { field: t('workflow.nodes.triggerSchedule.mode') })
if (!errorMessages && !payload.timezone)
errorMessages = t(`${i18nPrefix}.fieldRequired`, { field: t('workflow.nodes.triggerSchedule.timezone') })
// Validate timezone format if provided (timezone will be auto-filled by use-config.ts if undefined)
if (!errorMessages && payload.timezone) {
try {
Intl.DateTimeFormat(undefined, { timeZone: payload.timezone })