mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Fixes the 'undefined' in connection tree when capabilities not loaded (#617)
* fixed the bug with loading the connection tree when capabilities not loaded
This commit is contained in:
@@ -79,9 +79,12 @@ export class ConnectionProfileGroup implements IConnectionProfileGroup {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if all connections in the tree have valid options using the correct capabilities
|
||||
*/
|
||||
public get hasValidConnections(): boolean {
|
||||
if (this.connections) {
|
||||
let invalidConnections = this.connections.find(c => c.serverCapabilities === undefined);
|
||||
let invalidConnections = this.connections.find(c => !c.isConnectionOptionsValid);
|
||||
if (invalidConnections !== undefined) {
|
||||
return false;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user