From 1e102bb128797d0fbed262e4f965d9111972eb46 Mon Sep 17 00:00:00 2001 From: goodmice Date: Mon, 18 Oct 2021 13:24:11 +0500 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BC=D0=B5=D1=82=D0=BE?= =?UTF-8?q?=D0=B4=D0=BE=D0=B2=20=D1=81=D0=B5=D1=80=D0=B2=D0=B8=D1=81=D0=B0?= =?UTF-8?q?=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/WellOperations/DrillProcessFlow.jsx | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/pages/WellOperations/DrillProcessFlow.jsx b/src/pages/WellOperations/DrillProcessFlow.jsx index a046117..3b38a4c 100644 --- a/src/pages/WellOperations/DrillProcessFlow.jsx +++ b/src/pages/WellOperations/DrillProcessFlow.jsx @@ -40,22 +40,22 @@ export const DrillProcessFlow = ({idWell}) => { useEffect(updateFlows, [idWell]) - const onAdd = async (param) => { - param.idWell = idWell - await DrillFlowChartService.insert(idWell, param) + const onAdd = async (flow) => { + flow.idWell = idWell + await DrillFlowChartService.insert(idWell, flow) updateFlows() } - const onEdit = async (param) => { - if (!param.id) return - param.idWell = idWell - await DrillFlowChartService.update(idWell, param.id, param) + const onEdit = async (flow) => { + if (!flow.id) return + flow.idWell = idWell + await DrillFlowChartService.edit(idWell, flow) updateFlows() } - const onDelete = async (param) => { - if (!param.id) return - await DrillFlowChartService.delete(idWell, param.id) + const onDelete = async (flow) => { + if (!flow.id) return + await DrillFlowChartService.delete(idWell, flow.id) updateFlows() }