mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
@@ -314,6 +314,7 @@ export class AttachToDropdown extends SelectBox {
|
|||||||
attachToConnections = attachToConnections.filter(val => val !== msgSelectConnection);
|
attachToConnections = attachToConnections.filter(val => val !== msgSelectConnection);
|
||||||
|
|
||||||
let index = attachToConnections.findIndex((connection => connection === connectedServer));
|
let index = attachToConnections.findIndex((connection => connection === connectedServer));
|
||||||
|
this.setOptions([]);
|
||||||
this.setOptions(attachToConnections);
|
this.setOptions(attachToConnections);
|
||||||
if (!index || index < 0 || index >= attachToConnections.length) {
|
if (!index || index < 0 || index >= attachToConnections.length) {
|
||||||
index = 0;
|
index = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user