Skip to content

Commit

Permalink
Ønsker å fetche person før forrige søknad.
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnsteingarmo committed Nov 17, 2023
1 parent 1f7bb84 commit 0b30a85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/barnetilsyn/BarnetilsynApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ const BarnetilsynApp = () => {
fetchToggles(),
fetchPersonData(),
hentMellomlagretBarnetilsyn(),
hentForrigeSøknadBarnetilsyn(),
])
.then(() => {
return hentForrigeSøknadBarnetilsyn();
})
.then(() => settFetching(false))
.catch(() => settFetching(false));
// eslint-disable-next-line
Expand Down
2 changes: 1 addition & 1 deletion src/utils/søknad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const hentDataFraForrigeBarnetilsynSøknad = async (
try {
const response = await axios.post(
`${Environment().apiProxyUrl + '/api/soknadbarnetilsyn/hent'}`,
'11908498889',
personIdent,
axiosConfig
);
return response.data;
Expand Down

0 comments on commit 0b30a85

Please sign in to comment.