From 6834c0434c2fc010e9b2dac01752967d6c03abd4 Mon Sep 17 00:00:00 2001 From: Philippe Virouleau Date: Sat, 28 Mar 2020 00:05:53 +0100 Subject: [PATCH] Remove deprecation warning --- WcaOnRails/app/javascript/edit-events/EditEvents.jsx | 2 +- WcaOnRails/app/javascript/edit-events/modals/index.jsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/WcaOnRails/app/javascript/edit-events/EditEvents.jsx b/WcaOnRails/app/javascript/edit-events/EditEvents.jsx index 3fd5152a05..38e743f7a6 100644 --- a/WcaOnRails/app/javascript/edit-events/EditEvents.jsx +++ b/WcaOnRails/app/javascript/edit-events/EditEvents.jsx @@ -34,7 +34,7 @@ export default class EditEvents extends React.Component { } } - componentWillMount() { + UNSAFE_componentWillMount() { this.setState({ savedWcifEvents: _.cloneDeep(this.props.wcifEvents) }); } diff --git a/WcaOnRails/app/javascript/edit-events/modals/index.jsx b/WcaOnRails/app/javascript/edit-events/modals/index.jsx index 8d6e483eb8..1c9f672f3f 100644 --- a/WcaOnRails/app/javascript/edit-events/modals/index.jsx +++ b/WcaOnRails/app/javascript/edit-events/modals/index.jsx @@ -33,11 +33,11 @@ function findRounds(wcifEvents, roundIds) { } class EditRoundAttribute extends React.Component { - componentWillMount() { + UNSAFE_componentWillMount() { this.reset(); } - componentWillReceiveProps() { + UNSAFE_componentWillReceiveProps() { this.reset(); }