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

Delete string parameters that have a length of 0

parent 4532be3b
No related branches found
No related tags found
1 merge request!104Resolve "Filter parameters that have an empty string"
This commit is part of merge request !104. Comments created here will be created in the context of that merge request.
......@@ -191,6 +191,13 @@ function startWorkflow() {
errorToast?.hide();
formState.validated = true;
formState.errorType = undefined;
// delete parameters that are strings and have a length of 0
for (const paramName of Object.keys(formState.formInput)) {
const param = formState.formInput[paramName];
if (typeof param === "string" && param?.trim().length === 0) {
delete formState.formInput[paramName];
}
}
if (launchForm.value?.checkValidity()) {
const schemaValid = validateSchema(formState.formInput);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment