From c442ca4d868d634451d190c90f53e77ae008b27f Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 11 Aug 2019 15:36:24 +0300 Subject: [PATCH] Don't show homeserver as selected when one isn't actually selected. Fixes #57 --- maubot/management/frontend/src/pages/dashboard/Client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maubot/management/frontend/src/pages/dashboard/Client.js b/maubot/management/frontend/src/pages/dashboard/Client.js index b41cd57..8d9d9b2 100644 --- a/maubot/management/frontend/src/pages/dashboard/Client.js +++ b/maubot/management/frontend/src/pages/dashboard/Client.js @@ -91,7 +91,7 @@ class Client extends BaseMainView { return this.state.homeserver ? this.homeserverEntry([this.props.ctx.homeserversByURL[this.state.homeserver], this.state.homeserver]) - : this.homeserverOptions[0] || {} + : {} } homeserverEntry = ([serverName, serverURL]) => serverURL && {