fix: [검사문서] bending 개소별 저장 fallback 조건 수정
- isBending이지만 bendingProducts가 없는 경우에도 기존 개소별 저장 동작하도록 조건 변경 - Before: if (!isBending) → 절곡이면 무조건 skip - After: if (!isBending || bendingProducts.length === 0) → 구성품 없으면 개소별 fallback
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user