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) => {
|
||||
operation.idType = idType
|
||||
operation.wellDepth = +operation.wellDepth
|
||||
operation.durationHours = +operation.durationHours
|
||||
await WellOperationService.insertRange(idWell, [operation])
|
||||
updateOperations()
|
||||
}
|
||||
@ -107,6 +109,8 @@ export const WellOperationsEditor = ({idWell, idType}) => {
|
||||
if(!operation.id)
|
||||
return
|
||||
operation.idType = idType
|
||||
operation.wellDepth = +operation.wellDepth
|
||||
operation.durationHours = +operation.durationHours
|
||||
await WellOperationService.update(idWell, operation.id, operation)
|
||||
updateOperations()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user