mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 09:35:36 -05:00
null checks for onBeforeDetached (#7782)
This commit is contained in:
@@ -398,7 +398,7 @@ export class NotebookInput extends EditorInput {
|
||||
}
|
||||
|
||||
public dispose(): void {
|
||||
if (this._model) {
|
||||
if (this._model && this._model.editorModel && this._model.editorModel.textEditorModel) {
|
||||
this._model.editorModel.textEditorModel.onBeforeDetached();
|
||||
}
|
||||
this._disposeContainer();
|
||||
|
||||
Reference in New Issue
Block a user