A2683 fix decimal value page crash on scale input (#420)

* fix scale step crashing bug

* cleanup fixes

* cleanup
This commit is contained in:
Favour Olayinka
2024-05-24 09:34:47 +01:00
committed by GitHub
parent 4dacce0682
commit 55d50a24e9
2 changed files with 6 additions and 2 deletions

View File

@@ -331,7 +331,7 @@ export default {
} else if (field.type === 'scale') {
inputProperties.minScale = parseInt(field.scale_min_value) ?? 1
inputProperties.maxScale = parseInt(field.scale_max_value) ?? 5
inputProperties.stepScale = parseInt(field.scale_step_value) ?? 1
inputProperties.stepScale = parseFloat(field.scale_step_value) ?? 1
} else if (field.type === 'slider') {
inputProperties.minSlider = parseInt(field.slider_min_value) ?? 0
inputProperties.maxSlider = parseInt(field.slider_max_value) ?? 50