mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Fix dialog/wizard undefined connectionInfo bug (#1725)
This commit is contained in:
@@ -71,7 +71,7 @@ export class ModelViewContent extends ViewBase implements OnInit, IModelView {
|
|||||||
|
|
||||||
@memoize
|
@memoize
|
||||||
public get connection(): sqlops.connection.Connection {
|
public get connection(): sqlops.connection.Connection {
|
||||||
if (!this._commonService.connectionManagementService) {
|
if (!this._commonService.connectionManagementService || !this._commonService.connectionManagementService.connectionInfo) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,7 +86,7 @@ export class ModelViewContent extends ViewBase implements OnInit, IModelView {
|
|||||||
|
|
||||||
@memoize
|
@memoize
|
||||||
public get serverInfo(): sqlops.ServerInfo {
|
public get serverInfo(): sqlops.ServerInfo {
|
||||||
if (!this._commonService.connectionManagementService) {
|
if (!this._commonService.connectionManagementService || !this._commonService.connectionManagementService.connectionInfo) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user