diff --git a/packages/editor/src/lib/editor/Editor.ts b/packages/editor/src/lib/editor/Editor.ts index f80ad8a53..66a7064d8 100644 --- a/packages/editor/src/lib/editor/Editor.ts +++ b/packages/editor/src/lib/editor/Editor.ts @@ -3953,7 +3953,7 @@ export class Editor extends EventEmitter { /** @internal */ @computed private get _shapeMaskCache(): ComputedCache { - return this.store.createComputedCache('pageMaskCache', (shape) => { + return this.store.createComputedCache('pageMaskCache', (shape) => { if (isPageId(shape.parentId)) { return undefined } @@ -3975,7 +3975,7 @@ export class Editor extends EventEmitter { if (intersection) { return intersection.map(Vec2d.Cast) } - return undefined + return [] }) return pageMask