From 43426314db75f85ccd3b41f047432c7aa2b2cf5a Mon Sep 17 00:00:00 2001 From: joe-kimlinger Date: Tue, 26 Apr 2022 09:30:41 +0300 Subject: [PATCH] Fix in the null check of the document editor container --- .../src/document-editor-container/document-editor-container.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controls/documenteditor/src/document-editor-container/document-editor-container.ts b/controls/documenteditor/src/document-editor-container/document-editor-container.ts index 6af68252e..6198dda37 100644 --- a/controls/documenteditor/src/document-editor-container/document-editor-container.ts +++ b/controls/documenteditor/src/document-editor-container/document-editor-container.ts @@ -1238,7 +1238,7 @@ export class DocumentEditorContainer extends Component implements I if (this.statusBar) { this.statusBar.destroy(); } - if (this.propertiesPaneContainer && this.editorContainer.parentElement) { + if (this.propertiesPaneContainer && this.propertiesPaneContainer.parentElement) { this.propertiesPaneContainer.innerHTML = ''; this.propertiesPaneContainer.parentElement.removeChild(this.propertiesPaneContainer); }