Merge pull request #5047 from paulkaplan/fix-zero-trim-update
Do not update trimmers only if both have not changed
This commit is contained in:
1 file changed
+2
-1
@@ -43,7 +43,8 @@ class AudioSelector extends React.Component {
|
||||
});
|
||||
}
|
||||
componentWillReceiveProps (newProps) {
|
||||
if (newProps.trimStart === this.props.trimStart) return;
|
||||
const {trimStart, trimEnd} = this.props;
|
||||
if (newProps.trimStart === trimStart && newProps.trimEnd === trimEnd) return;
|
||||
this.setState({
|
||||
trimStart: newProps.trimStart,
|
||||
trimEnd: newProps.trimEnd
|
||||
|
||||
Reference in new issue
Block a user