Skip to content
This repository was archived by the owner on Sep 29, 2020. It is now read-only.

Commit ff3be67

Browse files
authored
FIX Feil i visning av visittkort ved bruk av aktør-url + kodeverk-fiks i tilbakekreving (#1219)
1 parent 65933c7 commit ff3be67

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/behandling-tilbakekreving/src/BehandlingTilbakekrevingIndex.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ const BehandlingTilbakekrevingIndex: FunctionComponent<Props> = ({
114114
};
115115
}, [behandlingId]);
116116

117-
if (!behandling) {
117+
if (!behandling || !tilbakekrevingKodeverk) {
118118
return <LoadingPanel />;
119119
}
120120

packages/sak-app/src/aktoer/components/AktoerGrid.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import VisittkortSakIndex from '@fpsak-frontend/sak-visittkort';
1010
import {
1111
Kodeverk, KodeverkMedNavn, Fagsak, FagsakPerson,
1212
} from '@fpsak-frontend/types';
13+
import relasjonsRolleType from '@fpsak-frontend/kodeverk/src/relasjonsRolleType';
1314

1415
import { getAlleFpSakKodeverk } from '../../kodeverk/duck';
1516
import { pathToFagsak } from '../../app/paths';
@@ -32,12 +33,15 @@ export const AktoerGrid: FunctionComponent<OwnProps> = ({
3233
sprakkode,
3334
}) => {
3435
const getKodeverknavn = getKodeverknavnFn(alleKodeverk, kodeverkTyper);
36+
const vFagsak = data.fagsaker.length > 0 ? data.fagsaker[0] : { relasjonsRolleType: { kode: relasjonsRolleType.MOR } };
37+
3538
return (
3639
<>
3740
<VisittkortSakIndex
3841
alleKodeverk={alleKodeverk}
3942
sprakkode={sprakkode}
4043
fagsak={{
44+
...vFagsak,
4145
person: data.person,
4246
} as Fagsak}
4347
/>

0 commit comments

Comments
 (0)