File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from 'react';
22
33import { throttle } from 'lodash' ;
44
5- import { operationsApi } from '../../store/reducers/operations' ;
5+ import { DEFAULT_PAGE_SIZE , operationsApi } from '../../store/reducers/operations' ;
66import type { OperationKind } from '../../types/api/operations' ;
77
88interface UseOperationsInfiniteQueryProps {
@@ -18,7 +18,7 @@ const DEFAULT_SCROLL_MARGIN = 100;
1818export function useOperationsInfiniteQuery ( {
1919 database,
2020 kind,
21- pageSize = 20 ,
21+ pageSize = DEFAULT_PAGE_SIZE ,
2222 searchValue,
2323 scrollContainerRef,
2424} : UseOperationsInfiniteQueryProps ) {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import type {
88
99import { api } from './api' ;
1010
11- const DEFAULT_PAGE_SIZE = 20 ;
11+ export const DEFAULT_PAGE_SIZE = 20 ;
1212
1313// Validate and normalize the response to ensure it has proper structure
1414function validateOperationListResponse ( data : TOperationList ) : TOperationList {
You can’t perform that action at this time.
0 commit comments