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:
@@ -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))];
|
||||
}
|
||||
|
||||
/** 만드는 중인 것이 모든 식에서 받는 설계 입력 이름들(등장 차례) — 이름 · 모양 */
|
||||
|
||||
Reference in New Issue
Block a user