This commit is contained in:
Yurong He
2018-12-04 09:41:31 -08:00
committed by GitHub
parent 71b4e6afa4
commit 27a978cba5

View File

@@ -314,6 +314,7 @@ export class AttachToDropdown extends SelectBox {
attachToConnections = attachToConnections.filter(val => val !== msgSelectConnection);
let index = attachToConnections.findIndex((connection => connection === connectedServer));
this.setOptions([]);
this.setOptions(attachToConnections);
if (!index || index < 0 || index >= attachToConnections.length) {
index = 0;