From 690aa3932e55fe1d2f2ebd64c264a8728345724d Mon Sep 17 00:00:00 2001 From: Erlend Wiklem Date: Tue, 7 Jan 2025 17:15:22 +0100 Subject: [PATCH] Hindre "Infinity" som sidenummer --- .github/workflows/deploy.yml | 2 +- "src/api/kandidat-s\303\270k-api/kandidats\303\270k.ts" | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index be72b953..1f6936d9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -45,7 +45,7 @@ jobs: deploy-til-dev: name: Deploy til dev-gcp needs: bygg-og-push-docker-image - if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/formidling-jobbmesse' + if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/Infinity' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git "a/src/api/kandidat-s\303\270k-api/kandidats\303\270k.ts" "b/src/api/kandidat-s\303\270k-api/kandidats\303\270k.ts" index e8374d14..c420c5ec 100644 --- "a/src/api/kandidat-s\303\270k-api/kandidats\303\270k.ts" +++ "b/src/api/kandidat-s\303\270k-api/kandidats\303\270k.ts" @@ -87,7 +87,7 @@ interface IuseKandidatsøk { export const useKandidatsøk = ({ søkeprops, portefølje }: IuseKandidatsøk) => { const queryParams = new URLSearchParams({ - side: String(søkeprops.side), + side: Number.isFinite(søkeprops.side) ? String(søkeprops.side) : '1', sortering: søkeprops.sortering, });