Skip to content
Snippets Groups Projects
Verified Commit c0a559a5 authored by Daniel Göbel's avatar Daniel Göbel
Browse files

Allow only whitespaces as parameters

parent c7ca4887
No related branches found
No related tags found
1 merge request!105Resolve "Allow whitespaces as parameters"
This commit is part of merge request !105. Comments created here will be created in the context of that merge request.
...@@ -194,7 +194,7 @@ function startWorkflow() { ...@@ -194,7 +194,7 @@ function startWorkflow() {
// delete parameters that are strings and have a length of 0 // delete parameters that are strings and have a length of 0
for (const paramName of Object.keys(formState.formInput)) { for (const paramName of Object.keys(formState.formInput)) {
const param = formState.formInput[paramName]; const param = formState.formInput[paramName];
if (typeof param === "string" && param?.trim().length === 0) { if (typeof param === "string" && param?.length === 0) {
delete formState.formInput[paramName]; delete formState.formInput[paramName];
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment