diff --git a/src/sql/workbench/services/serverGroup/browser/serverGroupDialog.ts b/src/sql/workbench/services/serverGroup/browser/serverGroupDialog.ts index ec2a74c52e..4b72063a40 100644 --- a/src/sql/workbench/services/serverGroup/browser/serverGroupDialog.ts +++ b/src/sql/workbench/services/serverGroup/browser/serverGroupDialog.ts @@ -83,8 +83,8 @@ export class ServerGroupDialog extends Modal { const cancelLabel = localize('serverGroup.cancel', "Cancel"); this._addServerButton = this.addFooterButton(okLabel, () => this.addGroup()); this._closeButton = this.addFooterButton(cancelLabel, () => this.cancel()); - this.registerListeners(); this.isRendered = true; + this.registerListeners(); } protected layout(height?: number): void {