forked from ddrilling/asb_cloud_front
fix WellOperationEditor make wellDepth numeric before send.
This commit is contained in:
parent
a437972fc5
commit
8d46df8294
@ -99,6 +99,8 @@ export const WellOperationsEditor = ({idWell, idType}) => {
|
|||||||
|
|
||||||
const onAdd = async (operation) => {
|
const onAdd = async (operation) => {
|
||||||
operation.idType = idType
|
operation.idType = idType
|
||||||
|
operation.wellDepth = +operation.wellDepth
|
||||||
|
operation.durationHours = +operation.durationHours
|
||||||
await WellOperationService.insertRange(idWell, [operation])
|
await WellOperationService.insertRange(idWell, [operation])
|
||||||
updateOperations()
|
updateOperations()
|
||||||
}
|
}
|
||||||
@ -107,6 +109,8 @@ export const WellOperationsEditor = ({idWell, idType}) => {
|
|||||||
if(!operation.id)
|
if(!operation.id)
|
||||||
return
|
return
|
||||||
operation.idType = idType
|
operation.idType = idType
|
||||||
|
operation.wellDepth = +operation.wellDepth
|
||||||
|
operation.durationHours = +operation.durationHours
|
||||||
await WellOperationService.update(idWell, operation.id, operation)
|
await WellOperationService.update(idWell, operation.id, operation)
|
||||||
updateOperations()
|
updateOperations()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user