Oops, fix undefined variable

This commit is contained in:
David Baker 2016-09-28 11:56:07 +01:00
parent 62344b5194
commit fdb5020c0c

View file

@ -34,6 +34,7 @@ export default class NetworkDropdown extends React.Component {
this.inputTextBox = null;
const server = MatrixClientPeg.getHomeServerName();
let defaultNetwork = null;
if (
this.props.config.serverConfig &&
@ -46,7 +47,7 @@ export default class NetworkDropdown extends React.Component {
this.state = {
expanded: false,
selectedServer: MatrixClientPeg.getHomeServerName(),
selectedServer: server,
selectedNetwork: defaultNetwork,
};
}