Fix ReferenceError when adding new bouncer network
Fixes the following:
ReferenceError: can't access lexical declaration 'client' before initialization
handleNetworkSubmit app.js:1868
This commit is contained in:
@@ -1873,8 +1873,8 @@ export default class App extends Component {
|
|||||||
// By this point, bouncer-networks-notify should've advertised
|
// By this point, bouncer-networks-notify should've advertised
|
||||||
// the new network
|
// the new network
|
||||||
let serverID = this.serverFromBouncerNetwork(id);
|
let serverID = this.serverFromBouncerNetwork(id);
|
||||||
let client = this.clients.get(serverID);
|
let newClient = this.clients.get(serverID);
|
||||||
client.params.autojoin = [autojoin];
|
newClient.params.autojoin = [autojoin];
|
||||||
|
|
||||||
this.switchToChannel = autojoin;
|
this.switchToChannel = autojoin;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user