Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: move to constants
  • Loading branch information
astandrik committed Jul 2, 2025
commit 9370495236e19534800923169d1931409af873e7
4 changes: 2 additions & 2 deletions src/containers/Operations/useOperationsInfiniteQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';

import {throttle} from 'lodash';

import {operationsApi} from '../../store/reducers/operations';
import {DEFAULT_PAGE_SIZE, operationsApi} from '../../store/reducers/operations';
import type {OperationKind} from '../../types/api/operations';

interface UseOperationsInfiniteQueryProps {
Expand All @@ -18,7 +18,7 @@ const DEFAULT_SCROLL_MARGIN = 100;
export function useOperationsInfiniteQuery({
database,
kind,
pageSize = 20,
pageSize = DEFAULT_PAGE_SIZE,
searchValue,
scrollContainerRef,
}: UseOperationsInfiniteQueryProps) {
Expand Down
2 changes: 1 addition & 1 deletion src/store/reducers/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {

import {api} from './api';

const DEFAULT_PAGE_SIZE = 20;
export const DEFAULT_PAGE_SIZE = 20;

// Validate and normalize the response to ensure it has proper structure
function validateOperationListResponse(data: TOperationList): TOperationList {
Expand Down
Loading