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
Commits
c7ca4887
Commit
c7ca4887
authored
1 year ago
by
Daniel Göbel
Browse files
Options
Downloads
Plain Diff
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
Branches containing commit
No related tags found
1 merge request
!104
Resolve "Filter parameters that have an empty string"
Pipeline
#48757
passed
1 year ago
Stage: test
Stage: build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/parameter-schema/ParameterSchemaFormComponent.vue
+7
-0
7 additions, 0 deletions
...ponents/parameter-schema/ParameterSchemaFormComponent.vue
with
7 additions
and
0 deletions
src/components/parameter-schema/ParameterSchemaFormComponent.vue
+
7
−
0
View file @
c7ca4887
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment