diff options
author | LASER-Yi <[email protected]> | 2022-07-04 20:59:40 +0800 |
---|---|---|
committer | LASER-Yi <[email protected]> | 2022-07-04 20:59:40 +0800 |
commit | 39589866140e6cd9abb6ceac9534740423d56984 (patch) | |
tree | 1b9c0056e8db41254dd0b2249f0dc7cce842e098 | |
parent | be93a92a355001960d38c05e2bb737156828119d (diff) | |
download | bazarr-39589866140e6cd9abb6ceac9534740423d56984.tar.gz bazarr-39589866140e6cd9abb6ceac9534740423d56984.zip |
Fix #1893
-rw-r--r-- | frontend/src/pages/Settings/components/forms.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/frontend/src/pages/Settings/components/forms.tsx b/frontend/src/pages/Settings/components/forms.tsx index 09cb18789..6d97a35b9 100644 --- a/frontend/src/pages/Settings/components/forms.tsx +++ b/frontend/src/pages/Settings/components/forms.tsx @@ -130,15 +130,16 @@ type SliderProps = BaseInput<number> & export const Slider: FunctionComponent<SliderProps> = (props) => { const { value, update, rest } = useBaseInput(props); + const { label, ...sliderProps } = rest; const { min = 0, max = 100 } = props; const marks = useSliderMarks([min, max]); return ( - <InputWrapper label={rest.label}> + <InputWrapper label={label}> <MantineSlider - {...rest} + {...sliderProps} marks={marks} onChange={update} value={value ?? 0} |