diff --git a/src/pages/WellOperations/WellOperationsEditor.jsx b/src/pages/WellOperations/WellOperationsEditor.jsx index d6f93cd..8bacc16 100644 --- a/src/pages/WellOperations/WellOperationsEditor.jsx +++ b/src/pages/WellOperations/WellOperationsEditor.jsx @@ -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() }