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,