From a63fefc0ad1824c5d916110e05e905493ed71c5f Mon Sep 17 00:00:00 2001 From: Eric Pastuer Date: Wed, 30 May 2018 11:48:52 -0500 Subject: [PATCH] Allow the assumption that options is always an object. --- src/platform/editor/base-editor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/editor/base-editor.ts b/src/platform/editor/base-editor.ts index 6c56aff..e86f814 100644 --- a/src/platform/editor/base-editor.ts +++ b/src/platform/editor/base-editor.ts @@ -23,7 +23,7 @@ export abstract class BaseEditor implements AfterViewInit, OnDestroy { } get options(): any { - return this._options; + return this._options || {}; } constructor(private config: NgxMonacoEditorConfig) {}