fix(M02): 일위대가 고르기 목록 — 이름에 붙은 단위를 겹쳐 쓰지 않음

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Kyw9qnkJ94pC1A4PfpDtA
This commit is contained in:
2026-09-28 10:01:10 +09:00
co-authored by Claude Opus 5.5
parent 9b9787f60a
commit c25db2636e
2 changed files with 5 additions and 2 deletions
@@ -111,4 +111,4 @@
min-width: 6rem;
color: var(--color-text-muted);
font-variant-numeric: tabular-nums;
}
}
@@ -363,7 +363,10 @@ export function createStructurePanel(opts: StructurePanelOptions): StructurePane
const items = list.map((c) => ({
value: c.키,
key: c.키,
label: [c.이름, c.단위 && `(${c.단위})`, c.구분].filter(Boolean).join(" "),
// 이름에 단위가 이미 붙은 조합이 있음 — 겹치면 뺌
label: [c.이름, c.단위 && !c.이름.includes(`(${c.단위})`) && `(${c.단위})`, c.구분]
.filter(Boolean)
.join(" "),
}));
return choose(col ? `${TEXT.pickPrice} — ${columnHead(col)}` : TEXT.pickPrice, items, true);
};