diff --git a/blocksuite/affine/model/src/elements/brush/brush.ts b/blocksuite/affine/model/src/elements/brush/brush.ts index 3d05abcf90..42ceffab1b 100644 --- a/blocksuite/affine/model/src/elements/brush/brush.ts +++ b/blocksuite/affine/model/src/elements/brush/brush.ts @@ -46,7 +46,7 @@ export class BrushElementModel extends GfxPrimitiveElementModel { */ get commands() { if (!this._local.has('commands')) { - const stroke = getSolidStrokePoints(this.points, this.lineWidth); + const stroke = getSolidStrokePoints(this.points ?? [], this.lineWidth); const commands = getSvgPathFromStroke(stroke); this._local.set('commands', commands);