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,