Fixed: Error when selecting different Quality Profile

(cherry picked from commit 5e19478266b33905e88b2e769269e44e5dd98e4b)

Closes #2694
pull/2700/head
Bogdan 2 years ago
parent 15190aa61a
commit 484f2eb3ec

@ -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) });
};
//

@ -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) });
};
//

Loading…
Cancel
Save