From 484f2eb3ec8b14f76f2b6c35bf6a4fac9c19f5ba Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 18 Jul 2023 06:45:46 +0300 Subject: [PATCH] Fixed: Error when selecting different Quality Profile (cherry picked from commit 5e19478266b33905e88b2e769269e44e5dd98e4b) Closes #2694 --- .../Components/Form/MetadataProfileSelectInputConnector.js | 7 +------ .../Components/Form/QualityProfileSelectInputConnector.js | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/frontend/src/Components/Form/MetadataProfileSelectInputConnector.js b/frontend/src/Components/Form/MetadataProfileSelectInputConnector.js index 4087b3833..be41dcec4 100644 --- a/frontend/src/Components/Form/MetadataProfileSelectInputConnector.js +++ b/frontend/src/Components/Form/MetadataProfileSelectInputConnector.js @@ -83,12 +83,7 @@ class MetadataProfileSelectInputConnector extends Component { // Listeners onChange = ({ name, value }) => { - const { includeNoChange } = this.props; - - this.props.onChange({ - name, - value: includeNoChange && value === 'noChange' ? value : parseInt(value) - }); + this.props.onChange({ name, value: value === 'noChange' ? value : parseInt(value) }); }; // diff --git a/frontend/src/Components/Form/QualityProfileSelectInputConnector.js b/frontend/src/Components/Form/QualityProfileSelectInputConnector.js index 24d68d523..8a3c5e2a7 100644 --- a/frontend/src/Components/Form/QualityProfileSelectInputConnector.js +++ b/frontend/src/Components/Form/QualityProfileSelectInputConnector.js @@ -70,12 +70,7 @@ class QualityProfileSelectInputConnector extends Component { // Listeners onChange = ({ name, value }) => { - const { includeNoChange } = this.props; - - this.props.onChange({ - name, - value: includeNoChange && value === 'noChange' ? value : parseInt(value) - }); + this.props.onChange({ name, value: value === 'noChange' ? value : parseInt(value) }); }; //