From ca755365ce1b641805f90b2667fd409679e7a625 Mon Sep 17 00:00:00 2001 From: Matt Irvine Date: Mon, 25 Jun 2018 18:26:25 -0700 Subject: [PATCH] Fix dialog/wizard undefined connectionInfo bug (#1725) --- src/sql/parts/modelComponents/modelViewContent.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sql/parts/modelComponents/modelViewContent.component.ts b/src/sql/parts/modelComponents/modelViewContent.component.ts index 12a10f2e1e..17b4f6a463 100644 --- a/src/sql/parts/modelComponents/modelViewContent.component.ts +++ b/src/sql/parts/modelComponents/modelViewContent.component.ts @@ -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; }