commit | 3a67830fa931f1781d4ea2efe8f0a18767feaf6b | [log] [tgz] |
---|---|---|
author | Marcus Christie <machristie@apache.org> | Mon Aug 29 17:55:02 2022 -0400 |
committer | Marcus Christie <machristie@apache.org> | Mon Aug 29 17:55:02 2022 -0400 |
tree | 91df585c93aa13aa4fbbbd5a32b1892a288a9548 | |
parent | 71f02dbc9037effc02e5fd15d853817fe4cc8856 [diff] |
AIRAVATA-3654 Parse input value as a float instead of as an int Fixes bug where default float value was getting floored to an integer.
diff --git a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/input-editors/SliderInputEditor.vue b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/input-editors/SliderInputEditor.vue index 6824ad3..72ca46f 100644 --- a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/input-editors/SliderInputEditor.vue +++ b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/input-editors/SliderInputEditor.vue
@@ -84,7 +84,7 @@ }, parseValue(value) { // Just remove any percentage signs - const result = value ? parseInt(value.replaceAll("%", "")) : NaN; + const result = value ? parseFloat(value.replaceAll("%", "")) : NaN; return !isNaN(result) ? result : this.sliderMin; }, onChange(value) {