From 981a3c2db392099394c4c0b7c182b190877ae3f1 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 18 Apr 2025 12:15:17 +0300 Subject: [PATCH] Fixed: Selecting No Change for quality profile inputs --- .../Components/Form/Select/QualityProfileSelectInput.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/frontend/src/Components/Form/Select/QualityProfileSelectInput.tsx b/frontend/src/Components/Form/Select/QualityProfileSelectInput.tsx index ac611481f3..c74bf325b1 100644 --- a/frontend/src/Components/Form/Select/QualityProfileSelectInput.tsx +++ b/frontend/src/Components/Form/Select/QualityProfileSelectInput.tsx @@ -88,13 +88,10 @@ function QualityProfileSelectInput({ ); const handleChange = useCallback( - ({ value: newValue }: EnhancedSelectInputChanged) => { - onChange({ - name, - value: newValue === 'noChange' ? value : newValue, - }); + ({ value }: EnhancedSelectInputChanged) => { + onChange({ name, value }); }, - [name, value, onChange] + [name, onChange] ); useEffect(() => {