fix(FlowSubstep): count 0 as value towards required check

This commit is contained in:
Ali BARIN
2023-05-31 23:38:26 +00:00
parent 8a6d8a7d8c
commit f586e81dd1

View File

@@ -36,7 +36,7 @@ const validateSubstep = (substep: ISubstep, step: IStep) => {
// `false` is an exceptional valid value
if (argValue === false) return true;
return Boolean(argValue);
return argValue !== undefined && argValue !== null;
});
};