From db80a22f67589c182de8b0bc368b5b100d754edc Mon Sep 17 00:00:00 2001 From: umsangdon Date: Sun, 18 Oct 2026 22:03:28 +0900 Subject: [PATCH] =?UTF-8?q?fix(451=20B06=20=EC=83=88=EB=A1=9C=EA=B3=A0?= =?UTF-8?q?=EC=B9=A8=20hold):=20=EB=90=98=EB=8F=8C=EB=A6=BC=20=EC=B8=A1?= =?UTF-8?q?=EC=A0=90=20=EA=B0=99=EC=9D=8C=20=ED=8C=90=EC=A0=95=20=3D=20?= =?UTF-8?q?=EC=B4=88=EC=95=88=20=EC=96=B9=EA=B8=B0=20=EB=8B=A4=EC=8B=9C=20?= =?UTF-8?q?=EB=92=A4=20=EC=B8=A1=EC=A0=90=EC=9C=BC=EB=A1=9C=20(440-4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 초안 둔 채 새로고침 뒤 버림 기록이 saved-diff 로 남던 것 — 다시 얹은 뒤 견줌 · saved Co-Authored-By: Claude Opus 5.5 --- B06_Section/B06_Section_Section_Store.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/B06_Section/B06_Section_Section_Store.ts b/B06_Section/B06_Section_Section_Store.ts index b4d565544..538a19724 100644 --- a/B06_Section/B06_Section_Section_Store.ts +++ b/B06_Section/B06_Section_Section_Store.ts @@ -345,10 +345,6 @@ export async function restoreSectionDetail( const current = cache.get(key); if (!current) return null; const saved = renewed.get(hold.detail) ?? hold.detail; // 그 사이 서버 판이 바뀌었으면 새 판(433-16) - const sections = saved.cross_sections; - const same = - sections.length === stations.length && - stations.every((station, i) => Math.abs(station.chainageM - sections[i].chainage_m) < 1e-3); const oldKeys = registeredKeys( projectId, routeId, @@ -371,6 +367,10 @@ export async function restoreSectionDetail( await withDraftShapes(saved, projectId); withStructureAreas(saved); if (cache.get(key) !== saved) return null; // 그 사이 다른 갈아끼움 · 새로 받음 + const sections = saved.cross_sections; // 다시 얹은 뒤 측점(440-4) + const same = + sections.length === stations.length && + stations.every((station, i) => Math.abs(station.chainageM - sections[i].chainage_m) < 1e-3); emitSwap(saved, moves); listeners.get(key)?.forEach((fn) => fn(saved, moves)); return { detail: saved, same };