fix drilling prgram part approve with no comment

This commit is contained in:
Фролов 2022-03-02 10:40:13 +05:00
parent 8431e40a39
commit 0d049904fa

View File

@ -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,