From 162b961588d987fe424949d52efa864a66d03e1c Mon Sep 17 00:00:00 2001 From: "kelvin.yau" Date: Tue, 11 Aug 2026 06:21:55 +0800 Subject: [PATCH] enson fix 2 --- .../ProductionProcessStepExecution.tsx | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/ProductionProcess/ProductionProcessStepExecution.tsx b/src/components/ProductionProcess/ProductionProcessStepExecution.tsx index 42b9b7b8..096acbb5 100644 --- a/src/components/ProductionProcess/ProductionProcessStepExecution.tsx +++ b/src/components/ProductionProcess/ProductionProcessStepExecution.tsx @@ -640,13 +640,13 @@ const ProductionProcessStepExecution: React.FC{t("Defect")}{t("(1)")} - {lineDetail.defectQty} + {lineDetail?.defectQty} - {lineDetail.defectUom || "-"} + {lineDetail?.defectUom || "-"} - {lineDetail.defectDescription || "-"} + {lineDetail?.defectDescription || "-"} @@ -654,13 +654,13 @@ const ProductionProcessStepExecution: React.FC{t("Defect")}{t("(2)")} - {lineDetail.defectQty2} + {lineDetail?.defectQty2} - {lineDetail.defectUom2 || "-"} + {lineDetail?.defectUom2 || "-"} - {lineDetail.defectDescription2 || "-"} + {lineDetail?.defectDescription2 || "-"} @@ -668,13 +668,13 @@ const ProductionProcessStepExecution: React.FC{t("Defect")}{t("(3)")} - {lineDetail.defectQty3} + {lineDetail?.defectQty3} - {lineDetail.defectUom3 || "-"} + {lineDetail?.defectUom3 || "-"} - {lineDetail.defectDescription3 || "-"} + {lineDetail?.defectDescription3 || "-"} @@ -682,10 +682,10 @@ const ProductionProcessStepExecution: React.FC{t("Scrap")} - {lineDetail.scrapQty} + {lineDetail?.scrapQty} - {lineDetail.scrapUom || "-"} + {lineDetail?.scrapUom || "-"}