Skip to content

Commit

Permalink
fixup GenericPulpAPI - make get not add pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
himdel committed Oct 22, 2024
1 parent 3ebdef3 commit 7c432cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/api/generic-pulp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ import { PulpAPI } from './pulp';
const base = new PulpAPI();

export const GenericPulpAPI = {
get: (url: string, params = {}) => base.list(url, params),
get: (url: string) => base.http.get(url),

list: (url: string, params = {}) => base.list(url, params),
};
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const VersionContent = ({

// @ts-expect-error: TS2339: Property 'params' does not exist on type '{}'.
const query = ({ params } = {}) =>
GenericPulpAPI.get(href.replace(API_BASE_PATH, ''), params);
GenericPulpAPI.list(href.replace(API_BASE_PATH, ''), params);

const renderTableRow = ({
manifest: {
Expand Down

0 comments on commit 7c432cb

Please sign in to comment.