fix: InspectionManagement 타입 에러 일괄 수정
- ProductInspectionApi order_items에 document_id, inspection_data 속성 추가 - saveLocationInspection 파라미터를 ProductInspectionData 타입으로 변경 - inspection_data API→Frontend 변환 시 타입 캐스팅 수정 - 로컬 빌드 성공 확인
This commit is contained in:
@@ -255,7 +255,7 @@ function transformApiToFrontend(api: ProductInspectionApi): ProductInspection {
|
||||
constructionHeight: item.construction_height,
|
||||
changeReason: item.change_reason,
|
||||
documentId: item.document_id ?? null,
|
||||
inspectionData: item.inspection_data || undefined,
|
||||
inspectionData: item.inspection_data ? item.inspection_data as unknown as ProductInspectionData : undefined,
|
||||
})),
|
||||
requestDocumentId: api.request_document_id ?? null,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user