mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(editor): sentry-332848caa68e4679b403d56881e3c0e3 (#9343)
This commit is contained in:
@@ -46,7 +46,7 @@ export class BrushElementModel extends GfxPrimitiveElementModel<BrushProps> {
|
|||||||
*/
|
*/
|
||||||
get commands() {
|
get commands() {
|
||||||
if (!this._local.has('commands')) {
|
if (!this._local.has('commands')) {
|
||||||
const stroke = getSolidStrokePoints(this.points, this.lineWidth);
|
const stroke = getSolidStrokePoints(this.points ?? [], this.lineWidth);
|
||||||
const commands = getSvgPathFromStroke(stroke);
|
const commands = getSvgPathFromStroke(stroke);
|
||||||
|
|
||||||
this._local.set('commands', commands);
|
this._local.set('commands', commands);
|
||||||
|
|||||||
Reference in New Issue
Block a user