From 5db9a0820257c5353d4fac2affea16a4119db293 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Mon, 19 Oct 2026 00:12:57 +0900 Subject: [PATCH] =?UTF-8?q?fix(463=20=EB=8D=A7=20=EC=A7=80=ED=91=9C?= =?UTF-8?q?=EB=A9=B4=20=EC=84=A4=EC=A0=95=20=EC=97=86=EB=8A=94=20=EB=85=B8?= =?UTF-8?q?=EC=84=A0):=20panelValuesOf=20=C2=B7=20=EC=84=9C=EB=AA=85=20?= =?UTF-8?q?=C2=B7=20[=EC=A0=80=EC=9E=A5]=20=EC=83=81=EB=8B=A8=EC=B8=A1=20?= =?UTF-8?q?=EC=B0=A8=EB=A1=80=EA=B0=80=20surface=5Fparams=20=EC=97=86?= =?UTF-8?q?=EC=9C=BC=EB=A9=B4=20=EA=B8=B0=EB=B3=B8=EA=B0=92=20=E2=80=94=20?= =?UTF-8?q?=EC=A2=85=EB=8B=A8=EB=8F=84=20=EC=95=88=20=EA=B7=B8=EB=A0=A4?= =?UTF-8?q?=EC=A7=80=EB=8D=98=20=ED=9D=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - latest 에 surface_params 없음(옛 · 시험 · 막 만든 프로젝트) = 등고선 칸은 패널 값 그대로 · 종단도 기준은 저장 설정대로 - 시험 test_271_profile_settings 에 지표면 설정 없는 노선 한 건 · 346_2 · 442_2 · 저장 시험 통과 Co-Authored-By: Claude Opus 5.5 --- B05_Profile/B05_Profile_Api_Fetch.ts | 6 +++--- B05_Profile/B05_Profile_UI_Page_Latest.ts | 8 ++++---- resources/tester/helper_271_profile_settings.cjs | 5 +++++ resources/tester/test_271_profile_settings.py | 12 ++++++++++++ 4 files changed, 24 insertions(+), 7 deletions(-) diff --git a/B05_Profile/B05_Profile_Api_Fetch.ts b/B05_Profile/B05_Profile_Api_Fetch.ts index bd32c576d..653b11c7e 100644 --- a/B05_Profile/B05_Profile_Api_Fetch.ts +++ b/B05_Profile/B05_Profile_Api_Fetch.ts @@ -323,9 +323,9 @@ export async function flushRouteParts(projectId: string): Promise { readRouteLatestCache(projectId) ?? (await fetchLatestRoute(projectId).catch(() => null)); const surface = await fetchConfirmedSurface(projectId).catch(() => null); await saveRouteParts(projectId, { - filter_key: latest?.surface_params.source_filter, - method: latest?.surface_params.method, - smooth: latest?.surface_params.smooth, + filter_key: latest?.surface_params?.source_filter, + method: latest?.surface_params?.method, + smooth: latest?.surface_params?.smooth, surface_model_id: surface?.model_id ?? undefined, irregular_stations: [], uphill_overrides: uphillOverridesOf(projectId), diff --git a/B05_Profile/B05_Profile_UI_Page_Latest.ts b/B05_Profile/B05_Profile_UI_Page_Latest.ts index 0e2f6c9dc..348e18adb 100644 --- a/B05_Profile/B05_Profile_UI_Page_Latest.ts +++ b/B05_Profile/B05_Profile_UI_Page_Latest.ts @@ -40,9 +40,9 @@ export function createLatestSource(projectId: string) { [ value.route?.id ?? "", value.route?.surface_model_id ?? "", - value.surface_params.source_filter, - value.surface_params.method, - String(value.surface_params.smooth), + value.surface_params?.source_filter, + value.surface_params?.method, + String(value.surface_params?.smooth), ].join("|"); /** @@ -72,7 +72,7 @@ export function panelValuesOf(next: RouteLatestResponse): Partial