From e968a41253d21cebc6347b70f002fa59b6e5185e Mon Sep 17 00:00:00 2001 From: Joar Aurdal Date: Mon, 25 Nov 2024 17:00:15 +0100 Subject: [PATCH] Fjern ubrukte parametere for hent kandidatlister (#260) --- src/kandidat/api/api.ts | 2 +- src/kandidatsok/api/api.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kandidat/api/api.ts b/src/kandidat/api/api.ts index 81db8eab..098f99f4 100644 --- a/src/kandidat/api/api.ts +++ b/src/kandidat/api/api.ts @@ -151,7 +151,7 @@ export const fetchMineKandidatlister = async ( pageSize: number ): Promise => await fetchJson( - `${api.kandidat}/veileder/kandidatlister?kunEgne=true&status=ÅPEN&pagesize=${pageSize}${ + `${api.kandidat}/veileder/kandidatlister?pagesize=${pageSize}${ side > 1 ? `&pagenumber=${side - 1}` : '' }` ); diff --git a/src/kandidatsok/api/api.ts b/src/kandidatsok/api/api.ts index b12bee80..cdd30e47 100644 --- a/src/kandidatsok/api/api.ts +++ b/src/kandidatsok/api/api.ts @@ -7,7 +7,7 @@ export const hentMineKandidatlister = async ( pageSize: number ): Promise => { const respons = await get( - `${api.kandidat}/veileder/kandidatlister?kunEgne=true&status=ÅPEN&pagesize=${pageSize}${ + `${api.kandidat}/veileder/kandidatlister?pagesize=${pageSize}${ side > 1 ? `&pagenumber=${side - 1}` : '' }` );