diff --git a/src/components/fabric/QPolygon.js b/src/components/fabric/QPolygon.js index b8c3bbed..2ec45422 100644 --- a/src/components/fabric/QPolygon.js +++ b/src/components/fabric/QPolygon.js @@ -276,6 +276,10 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, { if ([POLYGON_TYPE.MODULE, 'arrow', POLYGON_TYPE.MODULE_SETUP_SURFACE, POLYGON_TYPE.OBJECT_SURFACE].includes(this.name)) { return } + + if (!this.fontSize) { + return + } this.canvas ?.getObjects() .filter((obj) => obj.name === 'lengthText' && obj.parentId === this.id)