fix(D03): 고름 맞춤(sync)이 페이지 다시 그림을 불러 돌고 도는 것 막음 — 속성 판이 안 뜨던 흠 (PLAN 585-2)

- refresh → edit.sync → onSelect → refresh 되풀이로 속성 판 그림이 끊김 · sync 는 고름만 맞추고 다시 그림은 부르는 쪽(refresh)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 19:02:51 +09:00
co-authored by Claude Opus 5.5
parent cc909d107e
commit c3f7261058
+2 -2
View File
@@ -193,8 +193,9 @@ export function createPlanEdit(params: PlanEditParams): PlanEdit {
apply((net, i) => removeLine(net, i));
}
/** 사라진 구간 뺌 — 부르는 쪽(페이지 `refresh`)이 다시 그림(여기서 onSelect 를 부르면 돌고 돎). */
function sync(): void {
if (!selected) return params.onSelect();
if (!selected) return;
const ids = pieceIds(params.network());
const pieces = selected.pieces.filter((id) => ids.has(id));
selected = pieces.length
@@ -205,7 +206,6 @@ export function createPlanEdit(params: PlanEditParams): PlanEdit {
mark: selected.mark && ids.has(selected.mark) ? selected.mark : null,
}
: null;
params.onSelect();
}
const pieceAt = (network: PlanNetwork, line: string, atM: number): string | null =>