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

Merge branch 'bugfix/107-filter-parameters-that-have-an-empty-string' into 'main'

Resolve "Filter parameters that have an empty string"

Closes #107

See merge request !104
parents 4532be3b 6fe33090
No related branches found
No related tags found
1 merge request!104Resolve "Filter parameters that have an empty string"
Pipeline #48757 passed
......@@ -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.
Finish editing this message first!
Please register or to comment