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

@@ -17,7 +17,7 @@
role="button"
@click="setScale(i)"
>
{{ i }}
{{ parseFloat(i).toFixed(2) }}
</div>
</div>
@@ -58,6 +58,10 @@ export default {
computed: {
scaleList() {
const list = []
if (this.stepScale == 0) {
list.push(this.minScale)
return list
}
for (let i = this.minScale; i <= this.maxScale; i += this.stepScale) {
list.push(i)
}