diff --git a/src/components/fabric/QLine.js b/src/components/fabric/QLine.js index 65575731..67c02d62 100644 --- a/src/components/fabric/QLine.js +++ b/src/components/fabric/QLine.js @@ -15,7 +15,8 @@ export const QLine = fabric.util.createClass(fabric.Line, { padding: 5, initialize: function (points, options, length = 0) { // 소수점 전부 제거 - points = points.map((point) => Number(point.toFixed(1))) + + points = points.map((point) => Number(point?.toFixed(1))) this.callSuper('initialize', points, { ...options, selectable: options.selectable ?? true }) if (options.id) {