From c0a559a5286f9c3cb415378ccc95c5072b577bf5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20G=C3=B6bel?= <dgoebel@techfak.uni-bielefeld.de>
Date: Thu, 14 Mar 2024 11:22:26 +0100
Subject: [PATCH] Allow only whitespaces as parameters

#108
---
 .../parameter-schema/ParameterSchemaFormComponent.vue           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/components/parameter-schema/ParameterSchemaFormComponent.vue b/src/components/parameter-schema/ParameterSchemaFormComponent.vue
index 0f10690..cc847a6 100644
--- a/src/components/parameter-schema/ParameterSchemaFormComponent.vue
+++ b/src/components/parameter-schema/ParameterSchemaFormComponent.vue
@@ -194,7 +194,7 @@ function startWorkflow() {
   // 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) {
+    if (typeof param === "string" && param?.length === 0) {
       delete formState.formInput[paramName];
     }
   }
-- 
GitLab