Skip to content
Snippets Groups Projects

Resolve "Filter parameters that have an empty string"

1 file
+ 7
0
Compare changes
  • Side-by-side
  • Inline
@@ -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);
Loading