forked from ddrilling/asb_cloud_front
fix drilling prgram part approve with no comment
This commit is contained in:
parent
8431e40a39
commit
0d049904fa
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user