diff --git a/core/comments/rendered_workspace_comment.ts b/core/comments/rendered_workspace_comment.ts index 9ff1ce112..b5818895f 100644 --- a/core/comments/rendered_workspace_comment.ts +++ b/core/comments/rendered_workspace_comment.ts @@ -143,7 +143,7 @@ export class RenderedWorkspaceComment */ getBoundingRectangle(): Rect { const loc = this.getRelativeToSurfaceXY(); - const size = this.view.getSize(); + const size = this.view?.getSize() ?? this.getSize(); let left; let right; if (this.workspace.RTL) {