Skip to content
Snippets Groups Projects
Commit 4757bb73 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Do not update trimmers only if both have not changed

parent 7d1dfb67
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment