From fdb5020c0ccd7ad6b6ae8f43e0ba37dc26a54713 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 28 Sep 2016 11:56:07 +0100 Subject: [PATCH] Oops, fix undefined variable --- src/components/views/directory/NetworkDropdown.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/directory/NetworkDropdown.js b/src/components/views/directory/NetworkDropdown.js index 48d5152f..c52d4d4f 100644 --- a/src/components/views/directory/NetworkDropdown.js +++ b/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, }; }