1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-14 19:02:33 +03:00

Fix a number of minor code quality issues

Most of these are complaints from my IDE. Discovered by going through nearly every file looking for React warnings.
This commit is contained in:
Travis Ralston
2020-03-31 14:05:56 -06:00
parent 56dda3895c
commit c86d75693b
11 changed files with 12 additions and 18 deletions

View File

@@ -158,7 +158,7 @@ const Pill = createReactClass({
componentWillMount() {
this._unmounted = false;
this._matrixClient = MatrixClientPeg.get();
this.componentWillReceiveProps(this.props);
this.componentWillReceiveProps(this.props); // HACK: We shouldn't be calling lifecycle functions ourselves.
},
componentWillUnmount() {