From 7c3c5778111c7d3b34dfb7ce1e3f5e3966241b4f Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 29 Apr 2025 03:12:10 +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 81ad726f1..a1dcc6dbc 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(() => {