mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-27 17:23:21 -05:00
make sure the content is not undefined (#18406)
This commit is contained in:
@@ -116,7 +116,7 @@ export class DesignerScriptEditor extends BaseTextEditor implements DesignerText
|
||||
}
|
||||
|
||||
private updateEditor(): void {
|
||||
if (this._editorModel) {
|
||||
if (this._editorModel && this._content) {
|
||||
this._modelService.updateModel(this._editorModel, this._content);
|
||||
this._untitledTextEditorModel.setDirty(false);
|
||||
this.layout(new DOM.Dimension(this._container.clientWidth, this._container.clientHeight));
|
||||
|
||||
Reference in New Issue
Block a user