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