fix(M01): 새로 만들기 모달 — 표 조건 고르기 목록의 빈 값 거름 · 계약에 모달이 쓰는 길 적음 · 메쌓기 새로 만들기가 GF000219 와 같은 금액 확인

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WRFJmmhPi4exAzHgPZHMT
This commit is contained in:
2026-09-21 09:29:24 +09:00
co-authored by Claude Sonnet 5
parent 946425af13
commit 71fe9996de
2 changed files with 3 additions and 1 deletions
@@ -153,7 +153,8 @@ export const qtyPlain = (q: Qty): string =>
export function condChoices(table: string, cond: string): (string | number)[] | undefined {
const info = tableInfo.get(table);
if (!info || info.?.[cond] !== "고르기") return undefined;
return [...new Set((info. ?? []).map((r) => r[cond] as string | number))];
const seen = (info. ?? []).map((r) => r[cond] as string | number | undefined | null);
return [...new Set(seen.filter((v): v is string | number => v !== undefined && v !== null))];
}
/** 만드는 중인 것이 모든 식에서 받는 설계 입력 이름들(등장 차례) — 이름 · 모양 */