diff --git a/src/sql/parts/notebook/cellViews/outputArea.component.ts b/src/sql/parts/notebook/cellViews/outputArea.component.ts index c20ec93102..9eac59741b 100644 --- a/src/sql/parts/notebook/cellViews/outputArea.component.ts +++ b/src/sql/parts/notebook/cellViews/outputArea.component.ts @@ -34,7 +34,9 @@ export class OutputAreaComponent extends AngularDisposable implements OnInit { this.updateTheme(this.themeService.getColorTheme()); if (this.cellModel) { this._register(this.cellModel.onOutputsChanged(() => { - this._changeRef.detectChanges(); + if (!(this._changeRef['destroyed'])) { + this._changeRef.detectChanges(); + } })); } }