diff --git a/src/hooks/usePolygon.js b/src/hooks/usePolygon.js index 5aa4b7f1..9f0e390e 100644 --- a/src/hooks/usePolygon.js +++ b/src/hooks/usePolygon.js @@ -1146,7 +1146,7 @@ export const usePolygon = () => { defense = 'south' break } - pitch = polygon.lines[index]?.attributes?.pitch ?? 0 + pitch = polygon.lines[index]?.attributes?.pitch ?? representLine?.attributes?.pitch ?? 0 const roof = new QPolygon(roofPoint, { fontSize: polygon.fontSize,