diff --git a/E02_StabGround/E02_StabGround_UI_Page.ts b/E02_StabGround/E02_StabGround_UI_Page.ts index 16f0d420d..ed4add8d2 100644 --- a/E02_StabGround/E02_StabGround_UI_Page.ts +++ b/E02_StabGround/E02_StabGround_UI_Page.ts @@ -27,6 +27,7 @@ import { createText } from "@ui/ui_template_text"; import { t, type LocaleKey } from "@ui/ui_template_locale"; import { mountGroupStep } from "../A00_Common/group_workflow"; import { buildMissingBanner } from "../E01_StabRegister/E01_StabRegister_UI_Missing"; +import { inferStationInterval } from "../common_util/common_util_station"; import { buildCards, hook, type E02View } from "./E02_StabGround_UI_Tables"; import { checkGround, @@ -236,7 +237,10 @@ export function renderE02StabGround(root: HTMLElement): void { if (!view) return; const cards = buildCards(view); refreshStations = cards.refreshStations; - main.replaceChildren(buildMissingBanner(missing), cards.root); + main.replaceChildren( + buildMissingBanner(missing, inferStationInterval(view.ground.stations)), + cards.root, + ); mark(); }; diff --git a/E03_StabSection/E03_StabSection_UI_Page.ts b/E03_StabSection/E03_StabSection_UI_Page.ts index 4bae2313d..631c48364 100644 --- a/E03_StabSection/E03_StabSection_UI_Page.ts +++ b/E03_StabSection/E03_StabSection_UI_Page.ts @@ -495,7 +495,10 @@ export function renderE03StabSection(root: HTMLElement): void { if (before === "none" && result.status === "ok") active = null; // 첫 해석 뒤 = 가장 낮은 측점으로 sections.clear(); showReach(result.search_reach); - missingHost.replaceChildren(buildMissingBanner(result.missing_stations)); + interval = inferStationInterval( + result.stations.slice().sort((a, b) => a.chainage_m - b.chainage_m), + ); + missingHost.replaceChildren(buildMissingBanner(result.missing_stations, interval)); const conds = result.conditions; if (!conds.includes(condition)) condition = conds[0] ?? "dry"; condField.setOptions( @@ -503,9 +506,6 @@ export function renderE03StabSection(root: HTMLElement): void { condition, ); const keys = result.stations.map((r) => r.key); - interval = inferStationInterval( - result.stations.slice().sort((a, b) => a.chainage_m - b.chainage_m), - ); delete planView.zoom; // 다시 읽음 = 띠 원배율 if (!active || !keys.includes(active)) { // 처음 = 그 조건 가장 낮은 안전율 측점