Skip to content

Commit 2710084

Browse files
committed
fix(flow): check only the alias has a value
1 parent e79845b commit 2710084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/components/flow/form/processing/FunctionForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ const rules: Rules = {
220220
const errors = []
221221
if (source.func.name && !value) {
222222
errors.push(new Error(t('ruleFunction.aliasRequired')))
223-
} else if (!correctAliasReg.test(value)) {
223+
} else if (value && !correctAliasReg.test(value)) {
224224
errors.push(new Error(t('ruleFunction.aliasFormatError')))
225225
}
226226
return errors

0 commit comments

Comments
 (0)