fix(pop-card-list): 미입고 formula 필드 입력값 연동 복원
설정 UI에서 formulaRightType 기본값을 "input"으로 표시하지만 DB에 명시적으로 저장하지 않아, 렌더링 시 undefined === "input"이 false가 되어 입력필드 연동이 작동하지 않던 버그를 수정한다. - FieldRow: (field.formulaRightType || "input") === "input"으로 기본값 fallback 추가
This commit is contained in:
parent
b2b0b575df
commit
85bf4882a8
|
|
@ -1307,7 +1307,7 @@ function FieldRow({
|
||||||
|
|
||||||
// 구조화된 수식 우선
|
// 구조화된 수식 우선
|
||||||
if (field.formulaLeft && field.formulaOperator) {
|
if (field.formulaLeft && field.formulaOperator) {
|
||||||
const rightVal = field.formulaRightType === "input"
|
const rightVal = (field.formulaRightType || "input") === "input"
|
||||||
? (inputValue ?? 0)
|
? (inputValue ?? 0)
|
||||||
: Number(row[field.formulaRight || ""] ?? 0);
|
: Number(row[field.formulaRight || ""] ?? 0);
|
||||||
const leftVal = Number(row[field.formulaLeft] ?? 0);
|
const leftVal = Number(row[field.formulaLeft] ?? 0);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue