fix(viewer): block body for zone-shape forEach (useIterableCallbackReturn)

Main's biome config flags a callback returning a value; the ternary in the
zone-shape forEach implicitly returned moveTo/lineTo. Use a block body.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Wassim SAMAD
2026-06-25 12:37:03 -04:00
co-authored by Claude Opus 4.8
parent 708fa5278e
commit b7386f2dcb
@@ -569,7 +569,10 @@ export function GlbScene({
const built: ZoneFill[] = [] const built: ZoneFill[] = []
for (const entry of zoneEntries) { for (const entry of zoneEntries) {
const shape = new THREE.Shape() const shape = new THREE.Shape()
entry.polygon.forEach(([x, z], i) => (i === 0 ? shape.moveTo(x, -z) : shape.lineTo(x, -z))) entry.polygon.forEach(([x, z], i) => {
if (i === 0) shape.moveTo(x, -z)
else shape.lineTo(x, -z)
})
shape.closePath() shape.closePath()
const floorMaterial = createZoneFloorMaterial(entry.color) const floorMaterial = createZoneFloorMaterial(entry.color)