From e2ec728af393a4c7e43d2f28ff51ca0d45f9f210 Mon Sep 17 00:00:00 2001 From: que01 Date: Thu, 10 Sep 2026 12:21:47 +0800 Subject: [PATCH] fix: keep comparison baseline stable without junction quality --- src/compile/compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,