From 984f989646f0d18257fec1d66f0d96c23cae9287 Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Wed, 23 Oct 2024 17:56:17 +0900 Subject: [PATCH] [bugfix] Config Page: VR Tab. Fix the error "Failed prop type: Invalid prop `valueLabelFormat` supplied to `ForwardRef(Slider2)`, expected one of type [function, string]." It should've put strings but I put number (init value 0) --- .../setting_section/setting_box/_components/slider/Slider.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-ui/app/config_page/setting_section/setting_box/_components/slider/Slider.jsx b/src-ui/app/config_page/setting_section/setting_box/_components/slider/Slider.jsx index a24cb9dc..7f96bd86 100644 --- a/src-ui/app/config_page/setting_section/setting_box/_components/slider/Slider.jsx +++ b/src-ui/app/config_page/setting_section/setting_box/_components/slider/Slider.jsx @@ -32,7 +32,7 @@ export const Slider = (props) => { marks={props.marks} track={props.track} orientation={props.orientation} - valueLabelFormat={props.valueLabelFormat ? props.valueLabelFormat : null} + valueLabelFormat={`${props.valueLabelFormat ? props.valueLabelFormat : props.variable}`} sx={{ color: baseColor, "& .MuiSlider-thumb": {