Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CloWM UI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computational Metagenomics
CloWM
CloWM UI
Merge requests
!104
Resolve "Filter parameters that have an empty string"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Filter parameters that have an empty string"
bugfix/107-filter-parameters-that-have-an-empty-string
into
main
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Daniel Göbel
requested to merge
bugfix/107-filter-parameters-that-have-an-empty-string
into
main
1 year ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
Closes
#107 (closed)
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
6fe33090
1 commit,
1 year ago
1 file
+
7
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/components/parameter-schema/ParameterSchemaFormComponent.vue
+
7
−
0
Options
@@ -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