Skip to content
Snippets Groups Projects
Unverified Commit 1259457e authored by Eric Rosenbaum's avatar Eric Rosenbaum Committed by GitHub
Browse files

Merge pull request #5047 from paulkaplan/fix-zero-trim-update

Do not update trimmers only if both have not changed
parents 7d1dfb67 4757bb73
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