Fix dialog/wizard undefined connectionInfo bug (#1725)

This commit is contained in:
Matt Irvine
2018-06-25 18:26:25 -07:00
committed by GitHub
parent ea979de19f
commit ca755365ce

View File

@@ -71,7 +71,7 @@ export class ModelViewContent extends ViewBase implements OnInit, IModelView {
@memoize
public get connection(): sqlops.connection.Connection {
if (!this._commonService.connectionManagementService) {
if (!this._commonService.connectionManagementService || !this._commonService.connectionManagementService.connectionInfo) {
return undefined;
}
@@ -86,7 +86,7 @@ export class ModelViewContent extends ViewBase implements OnInit, IModelView {
@memoize
public get serverInfo(): sqlops.ServerInfo {
if (!this._commonService.connectionManagementService) {
if (!this._commonService.connectionManagementService || !this._commonService.connectionManagementService.connectionInfo) {
return undefined;
}