diff --git a/pages/api/mellomlagring/les.ts b/pages/api/mellomlagring/les.ts index 7c2d951e..4d045192 100644 --- a/pages/api/mellomlagring/les.ts +++ b/pages/api/mellomlagring/les.ts @@ -28,7 +28,8 @@ export const hentMellomlagring = async ( } if (isMock()) { const result = await lesCache(); - return result ? JSON.parse(result) : {}; + const parsedResult = result ? JSON.parse(result) : {}; + return parsedResult?.soknad || {}; } try { const mellomlagretSøknad = await simpleTokenXProxy({