Skip to content

Commit

Permalink
Remove deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
viroulep committed Mar 27, 2020
1 parent 8b1d7f6 commit a2b8bc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion WcaOnRails/app/javascript/edit-events/EditEvents.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class EditEvents extends React.Component {
}
}

componentWillMount() {
UNSAFE_componentWillMount() {
this.setState({ savedWcifEvents: _.cloneDeep(this.props.wcifEvents) });
}

Expand Down
4 changes: 2 additions & 2 deletions WcaOnRails/app/javascript/edit-events/modals/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ function findRounds(wcifEvents, roundIds) {
}

class EditRoundAttribute extends React.Component {
componentWillMount() {
UNSAFE_componentWillMount() {
this.reset();
}

componentWillReceiveProps() {
UNSAFE_componentWillReceiveProps() {
this.reset();
}

Expand Down

0 comments on commit a2b8bc2

Please sign in to comment.