One less Set

pull/21833/head
J. Ryan Stinnett 2021-05-21 12:41:59 +01:00
parent d59b2b3579
commit f8e61a982b
1 changed files with 1 additions and 1 deletions

View File

@ -662,7 +662,7 @@ class ServersInRoomList extends React.PureComponent<IExplorerProps, IServersInRo
super(props);
const room = this.props.room;
const servers: Set<string> = new Set();
const servers = new Set<string>();
room.currentState.getStateEvents("m.room.member").forEach(ev => servers.add(ev.getSender().split(":")[1]));
this.servers = Array.from(servers).map(s =>
<button key={s} className="mx_DevTools_ServersInRoomList_button">