fix: [검사문서] bending 개소별 저장 fallback 조건 수정

- isBending이지만 bendingProducts가 없는 경우에도 기존 개소별 저장 동작하도록 조건 변경
- Before: if (!isBending) → 절곡이면 무조건 skip
- After: if (!isBending || bendingProducts.length === 0) → 구성품 없으면 개소별 fallback
This commit is contained in:
2026-02-26 22:43:31 +09:00
parent 5e8cc4d0a6
commit 33f763b48f

View File

@@ -740,8 +740,8 @@ export const TemplateInspectionContent = forwardRef<InspectionContentRef, Templa
});
}
// 비-Bending 모드: 개소(WorkItem)별 데이터
if (!isBending) effectiveWorkItems.forEach((wi, rowIdx) => {
// 개소(WorkItem)별 데이터: 비-Bending 또는 Bending이지만 구성품이 없는 경우 (AS-IS)
if (!isBending || bendingProducts.length === 0) effectiveWorkItems.forEach((wi, rowIdx) => {
for (const col of template.columns) {
// 일련번호 컬럼 → 저장 (mng show에서 표시용)
if (isSerialColumn(col.label)) {