diff --git a/src/compile/compiler.js b/src/compile/compiler.js index c70de07..c8479fd 100644 --- a/src/compile/compiler.js +++ b/src/compile/compiler.js @@ -160,7 +160,7 @@ function compareOsm2Streets(area, model, compiled) { nativeMovementCount: compiled.movements.length, nativePublishedMovementCount: compiled.movements.filter((movement) => movement.geometryPublished).length, nativeConnectionCount: model.connections.length, - junctionQuality: compiled.junctionQuality || [], + ...(compiled.junctionQuality?.length ? { junctionQuality: compiled.junctionQuality } : {}), unconnectedInteriorRoadEnds: dangling.length, unconnectedEndsWithManualCandidates: dangling.filter((item) => item.manualCandidates?.length).length, diagnosticsBySeverity,