Oops, fix undefined variable
This commit is contained in:
parent
62344b5194
commit
fdb5020c0c
|
@ -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,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue