diff --git a/src/components/fabric/QPolygon.js b/src/components/fabric/QPolygon.js index e095de42..3f82dec1 100644 --- a/src/components/fabric/QPolygon.js +++ b/src/components/fabric/QPolygon.js @@ -248,6 +248,9 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, { }, addLengthText() { + if (['module', 'arrow'].includes(this.name)) { + return + } this.canvas ?.getObjects() .filter((obj) => obj.name === 'lengthText' && obj.parentId === this.id)