mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 06:58:25 +00:00
dont assign member in getInitialState
This commit is contained in:
@@ -32,8 +32,6 @@ module.exports = React.createClass({
|
|||||||
displayName: 'MemberList',
|
displayName: 'MemberList',
|
||||||
|
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
this._mounted = false;
|
|
||||||
|
|
||||||
const cli = MatrixClientPeg.get();
|
const cli = MatrixClientPeg.get();
|
||||||
if (cli.hasLazyLoadMembersEnabled()) {
|
if (cli.hasLazyLoadMembersEnabled()) {
|
||||||
return {loading: true};
|
return {loading: true};
|
||||||
@@ -43,6 +41,7 @@ module.exports = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
componentWillMount: function() {
|
componentWillMount: function() {
|
||||||
|
this._mounted = false;
|
||||||
const cli = MatrixClientPeg.get();
|
const cli = MatrixClientPeg.get();
|
||||||
if (!cli.hasLazyLoadMembersEnabled()) {
|
if (!cli.hasLazyLoadMembersEnabled()) {
|
||||||
this._listenForMembersChanges();
|
this._listenForMembersChanges();
|
||||||
|
|||||||
Reference in New Issue
Block a user