diff --git a/src/components/estimate/Estimate.jsx b/src/components/estimate/Estimate.jsx index 1d3b18ae..eb7d89d1 100644 --- a/src/components/estimate/Estimate.jsx +++ b/src/components/estimate/Estimate.jsx @@ -1128,7 +1128,7 @@ export default function Estimate({ params }) { { setEstimateContextState({ fileFlg: e.target.checked ? '1' : '0', diff --git a/src/hooks/floorPlan/estimate/useEstimateController.js b/src/hooks/floorPlan/estimate/useEstimateController.js index 6c9f221b..762cf421 100644 --- a/src/hooks/floorPlan/estimate/useEstimateController.js +++ b/src/hooks/floorPlan/estimate/useEstimateController.js @@ -148,12 +148,12 @@ export const useEstimateController = (planNo) => { let originFileFlg = false let fileFlg = true let itemFlg = true - if (estimateData.charger.trim().length === 0) { + if (estimateData?.charger === null || estimateData?.charger?.trim().length === 0) { flag = false return alert(getMessage('estimate.detail.save.requiredCharger')) } - if (estimateData.objectName.trim().length === 0) { + if (estimateData?.objectName === null || estimateData?.objectName?.trim().length === 0) { flag = false return alert(getMessage('estimate.detail.save.requiredObjectName')) }