fix: consider null as value in step parameters (#1282)

This commit is contained in:
kattoczko
2023-09-29 16:33:45 +02:00
committed by GitHub
parent 108bd04cf8
commit c77e12edbb
5 changed files with 79 additions and 61 deletions

View File

@@ -27,7 +27,7 @@ function computeArguments(
const sanitizedFieldPath = value.replace(/{|}/g, '');
const computedValue = getValues(sanitizedFieldPath);
if (computedValue === undefined)
if (computedValue === undefined || computedValue === '')
throw new Error(`The ${sanitizedFieldPath} field is required.`);
set(result, name, computedValue);