diff --git a/B05_Profile/B05_Profile_UI_Selection.ts b/B05_Profile/B05_Profile_UI_Selection.ts index 957aa0bc..e0fa8b92 100644 --- a/B05_Profile/B05_Profile_UI_Selection.ts +++ b/B05_Profile/B05_Profile_UI_Selection.ts @@ -97,7 +97,10 @@ export function createSelectionSync(ports: SelectionSyncPorts): SelectionSync { try { ports.selectMarker(id); ports.selectGraph(id); - ports.selectSidebar(matched ? matched.chainage_m : null); + // 투영 측점이 아직 없어도(방금 넣은 임시 관 — 재계산 전) 누가거리는 그대로 + // 넘긴다. null을 넘기면 사이드가 "해제"로 받아 임시 배치를 스스로 취소한다 + // (2026-08-18 임시 배치 자기 삭제 버그). + ports.selectSidebar(matched ? matched.chainage_m : chainageM); // 유역·마커 어느 쪽에서 왔든 시설 폼도 그 관을 연다(투영 측점이 없어도 // 누가거리로 근사 매칭 — Drainage 쪽이 못 찾으면 해제된다). ports.selectPipeForm?.(matched ? matched.chainage_m : chainageM); diff --git a/B05_Profile/B05_Profile_UI_Structures_Panel.ts b/B05_Profile/B05_Profile_UI_Structures_Panel.ts index a147dc0c..a83113d7 100644 --- a/B05_Profile/B05_Profile_UI_Structures_Panel.ts +++ b/B05_Profile/B05_Profile_UI_Structures_Panel.ts @@ -728,6 +728,10 @@ export function createStructuresSection(callbacks: StructuresCallbacks): Structu if (hit) { tempPipeChainage = hit.chainage_m; if (selectedPipeChainage !== null) selectedPipeChainage = hit.chainage_m; + // 재계산이 끝나 도착한 담당 유역 설계유량을 입력 중인 폼에 반영한다 — + // 물넘이·세월교 월류 높이가 이 값으로 계산된다(2026-08-18 진단: 재계산 + // 후 선택 통지가 조용히 끝나 폼이 유량을 못 받던 문제). + facilityOptions.setDesignFlow(hit.design_flow_m3s ?? null); } else { // 임시 배치 관이 재계산에서 사라졌다 — 임시 상태만 정리(관은 이미 없다). tempPipeChainage = null;