There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(editor): sentry-332848caa68e4679b403d56881e3c0e3 (#9343)
doodlewind9a29ac4a5c4c
diff --git a/blocksuite/affine/model/src/elements/brush/brush.ts b/blocksuite/affine/model/src/elements/brush/brush.tsindex 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<BrushProps> {*/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);