diff --git a/web/app/components/workflow/nodes/assigner/default.ts b/web/app/components/workflow/nodes/assigner/default.ts index ba23f5b4c9fe66..99f0a1c3d132c6 100644 --- a/web/app/components/workflow/nodes/assigner/default.ts +++ b/web/app/components/workflow/nodes/assigner/default.ts @@ -30,7 +30,9 @@ const nodeDefault: NodeDefault = { errorMessages = t(`${i18nPrefix}.fieldRequired`, { field: t('workflow.nodes.assigner.assignedVariable') }) if (!errorMessages && value.operation !== WriteMode.clear) { - if (value.operation === WriteMode.set) { + if (value.operation === WriteMode.set || value.operation === WriteMode.increment + || value.operation === WriteMode.decrement || value.operation === WriteMode.multiply + || value.operation === WriteMode.divide) { if (!value.value && typeof value.value !== 'number') errorMessages = t(`${i18nPrefix}.fieldRequired`, { field: t('workflow.nodes.assigner.variable') }) }