Исправлена конфигурация запроса при редактировании режимов бурения

This commit is contained in:
goodmice 2022-06-15 13:58:08 +05:00
parent 88fc1bf09f
commit 7f1160587c

View File

@ -67,7 +67,9 @@ export const WellDrillParams = memo(() => {
service: DrillParamsService, service: DrillParamsService,
setLoader: setShowLoader, setLoader: setShowLoader,
onComplete: updateParams, onComplete: updateParams,
permission: 'DrillParams.edit' permission: 'DrillParams.edit',
idWell,
idRecord: true,
} }
return { return {
@ -75,7 +77,7 @@ export const WellDrillParams = memo(() => {
edit: { ...handlerProps, action: 'update', actionName: 'Редактирование режима бурения', recordParser }, edit: { ...handlerProps, action: 'update', actionName: 'Редактирование режима бурения', recordParser },
delete: { ...handlerProps, action: 'delete', actionName: 'Удаление режима бурения', permission: 'DrillParams.delete' }, delete: { ...handlerProps, action: 'delete', actionName: 'Удаление режима бурения', permission: 'DrillParams.delete' },
} }
}, [updateParams, recordParser]) }, [idWell, updateParams, recordParser])
return ( return (
<LoaderPortal show={showLoader}> <LoaderPortal show={showLoader}>