diff --git a/packages/editor/src/classes/model/editor/index.ts b/packages/editor/src/classes/model/editor/index.ts index a95b6699..dd7f51d5 100644 --- a/packages/editor/src/classes/model/editor/index.ts +++ b/packages/editor/src/classes/model/editor/index.ts @@ -32,7 +32,7 @@ class Editor { } isMapLoadded(): boolean { - return this.component.isLoaded(); + return this.component?.isLoaded(); } save(minor: boolean): void {