Skip to content

Commit

Permalink
Merge pull request #2827 from NDLANO/show-all-greps
Browse files Browse the repository at this point in the history
Display all greps even if more than 10
  • Loading branch information
gunnarvelle authored Jan 15, 2025
2 parents 7ce68f6 + 3e35a28 commit 249c91d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 'Release: editorial-frontend'
name: "Release: editorial-frontend"
on:
workflow_dispatch:
inputs: { }
inputs: {}
push:
branches:
- master
Expand All @@ -18,7 +18,7 @@ env:
NDLA_ENVIRONMENT: local
NDLA_HOME: ${{ github.workspace }}/ndla
NDLA_DEPLOY: ${{ github.workspace }}/ndla/deploy
NODE_OPTIONS: '--max_old_space_size=4096'
NODE_OPTIONS: "--max_old_space_size=4096"
COMPONENT: ${{ github.event.repository.name }}
GPG_KEY: ${{ secrets.DEPLOY_BLACKBOX_GPG_KEY_B64 }}
jobs:
Expand All @@ -36,10 +36,13 @@ jobs:
path: ndla/deploy
- uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: "3.11"
- uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.6.1"
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: "1.9.2"
- name: Setup ~/bin directory
run: |
mkdir -p /home/runner/bin
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"tsx": "^4.19.2",
"typescript": "^5.7.2",
"typescript-eslint": "^8.16.0",
"vercel": "^33.6.2",
"vite": "^6.0.1",
"vitest": "^2.1.6"
},
Expand Down
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
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5893,6 +5893,7 @@ __metadata:
tsx: "npm:^4.19.2"
typescript: "npm:^5.7.2"
typescript-eslint: "npm:^8.16.0"
vercel: "npm:^33.6.2"
vite: "npm:^6.0.1"
vitest: "npm:^2.1.6"
winston: "npm:^3.13.0"
Expand Down

0 comments on commit 249c91d

Please sign in to comment.