diff --git a/src/components/fabric/QPolygon.js b/src/components/fabric/QPolygon.js index aff3f1e0..a365a882 100644 --- a/src/components/fabric/QPolygon.js +++ b/src/components/fabric/QPolygon.js @@ -166,9 +166,9 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, { }, initLines() { - if (this.lines.length > 0) { - return - } + // if (this.lines.length > 0) { + // return + // } this.lines = [] diff --git a/src/hooks/useCanvas.js b/src/hooks/useCanvas.js index c1bc760f..46dbbb35 100644 --- a/src/hooks/useCanvas.js +++ b/src/hooks/useCanvas.js @@ -118,10 +118,12 @@ export function useCanvas(id) { //QLine에 커스텀 어트리뷰트 넣기 if (this.type === 'QLine') { - this.attributes.type = this.attributes.type || 'default' - source.attributes = { - ...this.attributes, - type: this.attributes.type, + if (this.attributes) { + this.attributes.type = this.attributes.type || 'default' + source.attributes = { + ...this.attributes, + type: this.attributes.type, + } } }