mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-09-22 00:55:44 +00:00
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;
|
||||
|
||||
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,
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user