Oops, fix undefined variable

This commit is contained in:
David Baker 2016-09-28 11:56:07 +01:00
parent 62344b5194
commit fdb5020c0c
1 changed files with 2 additions and 1 deletions

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,
};
}