Skip to content

Commit

Permalink
Display all greps even if more than 10
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarvelle committed Jan 15, 2025
1 parent 7ce68f6 commit 146a427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/containers/FormikForm/GrepCodesField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const StyledList = styled("ul", {
});

export const convertGrepCodesToObject = async (grepCodes: string[]): Promise<Record<string, string>> => {
const grepCodesData = await searchGrepCodes({ codes: grepCodes });
const grepCodesData = await searchGrepCodes({ codes: grepCodes, pageSize: grepCodes.length });
const grepCodesWithTitle = grepCodesData.results.map((c) => ({
[c.code]: c.title.title ? `${c.code} - ${c.title.title}` : c,
}));
Expand Down

0 comments on commit 146a427

Please sign in to comment.