Map toggle, fix selecting chain

This commit is contained in:
maciejhirsz
2018-07-16 16:39:18 +02:00
parent f6fabfe340
commit efff299113
4 changed files with 44 additions and 10 deletions
+2 -2
View File
@@ -188,7 +188,6 @@ export class Connection {
case Actions.AddedChain: {
const [label, nodeCount] = message.payload;
chains.set(label, nodeCount);
this.autoSubscribe();
break;
}
@@ -200,7 +199,6 @@ export class Connection {
nodes.clear();
this.state = this.update({ subscribed: null, nodes, chains });
this.autoSubscribe();
continue messages;
}
@@ -230,6 +228,8 @@ export class Connection {
}
this.state = this.update(changes);
this.autoSubscribe();
}
private autoSubscribe() {