Fix the Attempt to use a destroyed view Errors (#4087)

This commit is contained in:
Chris LaFreniere
2019-02-19 08:28:55 -10:00
committed by GitHub
parent 1cc6a108a7
commit 3ae32ab0a0

View File

@@ -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();
}
}));
}
}