diff --git a/index.html b/index.html index 0d1dfea8..7334bba8 100644 --- a/index.html +++ b/index.html @@ -818,10 +818,12 @@ class HostSelector extends React.PureComponent { constructor(props) { super(props); + this.state = { hostName: props.serverAddress, changed: false }; + this.handleHostNameChange = this.handleHostNameChange.bind(this); this.handleEditingFinished = this.handleEditingFinished.bind(this); } @@ -863,6 +865,7 @@ class CheckBox extends React.PureComponent { constructor(props) { super(props); + this.handleChange = this.handleChange.bind(this); } @@ -1175,6 +1178,8 @@ /* BEGIN GroupSubs: a list of group subscribers currently online */ class GroupSubs extends React.Component { constructor(props) { + super(props); + this.state = { onlineSubs: props.subscribers || [] }; @@ -1186,7 +1191,7 @@ render() { var usersOnline = []; - this.state.onlineSubs.map(function(sub) { + this.state.onlineSubs.map((sub) => { usersOnline.push(