Skip to content

Commit

Permalink
UIIN-3174: Remove limit for version history list
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksandrHladchenko1 committed Feb 26, 2025
1 parent c2fced6 commit 01b296e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ import {
useOkapiKy,
} from '@folio/stripes/core';

import { LIMIT_MAX } from '@folio/stripes-inventory-components';

const useHoldingAuditDataQuery = (holdingId) => {
const ky = useOkapiKy();
const [namespace] = useNamespace({ key: 'holding-audit-data' });

const { isLoading, data = {} } = useQuery({
queryKey: [namespace, holdingId],
queryFn: () => ky.get(`audit-data/inventory/holdings/${holdingId}`, { searchParams: { limit: LIMIT_MAX } }).json(),
queryFn: () => ky.get(`audit-data/inventory/holdings/${holdingId}`).json(),
enabled: Boolean(holdingId),
});

Expand Down

0 comments on commit 01b296e

Please sign in to comment.