fix(editor): sentry-332848caa68e4679b403d56881e3c0e3 (#9343)

This commit is contained in:
doodlewind
2024-12-26 10:26:31 +00:00
parent 4692cfa624
commit 9a29ac4a5c

View File

@@ -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);