From 5d64102a7c3b59563695eb70bf485e15f6bfcc50 Mon Sep 17 00:00:00 2001 From: goodmice Date: Fri, 23 Dec 2022 14:45:13 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20API=20WellOperationService?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OperationEditor/WellOperationsEditor.jsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/pages/Well/WellOperations/OperationEditor/WellOperationsEditor.jsx b/src/pages/Well/WellOperations/OperationEditor/WellOperationsEditor.jsx index 08d548d..9610950 100644 --- a/src/pages/Well/WellOperations/OperationEditor/WellOperationsEditor.jsx +++ b/src/pages/Well/WellOperations/OperationEditor/WellOperationsEditor.jsx @@ -6,8 +6,6 @@ import { useState, useEffect, memo, useMemo, useCallback } from 'react' import { useTopRightBlock, useWell } from '@asb/context' import { EditableTable, - makeColumn, - makeNumericColumnOptions, makeSelectColumn, makeDateColumn, makeNumericColumn, @@ -72,11 +70,10 @@ export const WellOperationsEditor = memo(({ idType, showNpt, ...other }) => { const skip = ((pageNumAndPageSize.current - 1) * pageNumAndPageSize.pageSize) || 0 const take = pageNumAndPageSize.pageSize const paginatedOperations = await WellOperationService.getOperations(well.id, - idType, undefined, undefined, undefined, undefined, - undefined, undefined, skip, take) + undefined, undefined, undefined, undefined, undefined, idType, undefined, skip, take) const operations = paginatedOperations?.items ?? [] setOperations(operations) - const total = paginatedOperations.count?? paginatedOperations.items?.length ?? 0 + const total = paginatedOperations.count ?? paginatedOperations.items?.length ?? 0 setPaginationTotal(total) }, setShowLoader,