Browse Source

Oops, fix undefined variable

pull/2380/head
David Baker 6 years ago
parent
commit
fdb5020c0c
  1. 3
      src/components/views/directory/NetworkDropdown.js

3
src/components/views/directory/NetworkDropdown.js

@ -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…
Cancel
Save