diff --git a/src/hooks/useLine.js b/src/hooks/useLine.js index 5e0978ed..aa0e3594 100644 --- a/src/hooks/useLine.js +++ b/src/hooks/useLine.js @@ -87,6 +87,9 @@ export const useLine = () => { removePitchText(line) const { startPoint, endPoint, direction, attributes } = line const { offset, onlyOffset = false } = attributes + if (offset === 0) { + return + } let left, top