diff --git a/src/components/common/InputSlider.vue b/src/components/common/InputSlider.vue index 3bdb32354..6b3850c85 100644 --- a/src/components/common/InputSlider.vue +++ b/src/components/common/InputSlider.vue @@ -54,8 +54,8 @@ const updateValue = (newValue: number | null) => { newValue = Number(props.min) || 0 } - const min = Number(props.min) || Number.NEGATIVE_INFINITY - const max = Number(props.max) || Number.POSITIVE_INFINITY + const min = Number(props.min ?? Number.NEGATIVE_INFINITY) + const max = Number(props.max ?? Number.POSITIVE_INFINITY) const step = Number(props.step) || 1 // Ensure the value is within the allowed range