From 0d049904faeca36cbd28e352a33967f3cfb3e4cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Wed, 2 Mar 2022 10:40:13 +0500 Subject: [PATCH] fix drilling prgram part approve with no comment --- src/pages/DrillingProgram/CategoryRender.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/DrillingProgram/CategoryRender.jsx b/src/pages/DrillingProgram/CategoryRender.jsx index 8410ea9..7a00050 100644 --- a/src/pages/DrillingProgram/CategoryRender.jsx +++ b/src/pages/DrillingProgram/CategoryRender.jsx @@ -51,7 +51,7 @@ export const CategoryRender = memo(({ idWell, partData, onUpdate, onEdit, onHist const onApprove = useCallback((approve = true) => (values) => invokeWebApiWrapperAsync( async () => { - if (!file?.id || !permissionToApprove || !values?.comment) return + if (!file?.id || !permissionToApprove) return await DrillingProgramService.addOrReplaceFileMark(idWell, { idFile: file.id, idMarkType: approve ? 1 : 0,