diff --git a/src/sider/oversikt/sokeresultat/oversikttable/fristdatacell/OppfolgingsoppgaveModal.tsx b/src/sider/oversikt/sokeresultat/oversikttable/fristdatacell/OppfolgingsoppgaveModal.tsx index b99b6552..a960b357 100644 --- a/src/sider/oversikt/sokeresultat/oversikttable/fristdatacell/OppfolgingsoppgaveModal.tsx +++ b/src/sider/oversikt/sokeresultat/oversikttable/fristdatacell/OppfolgingsoppgaveModal.tsx @@ -42,7 +42,7 @@ export default function OppfolgingsoppgaveModal({ {texts.oppfolgingsgrunn} - {oppfolgingsgrunnToString[oppfolgingsoppgave.oppfolgingsgrunn].long} + {oppfolgingsgrunnToString[oppfolgingsoppgave.oppfolgingsgrunn]?.long} {oppfolgingsoppgave.tekst} diff --git a/src/utils/hendelseColumnUtils.ts b/src/utils/hendelseColumnUtils.ts index cac51fd6..21a6717a 100644 --- a/src/utils/hendelseColumnUtils.ts +++ b/src/utils/hendelseColumnUtils.ts @@ -103,7 +103,7 @@ export function getHendelser(personData: PersonData): string[] { if (personData.oppfolgingsoppgave) { const oppfolgingsgrunn = oppfolgingsgrunnToString[personData.oppfolgingsoppgave.oppfolgingsgrunn] - .short; + ?.short; hendelser.push(`Oppf.oppgave - ${oppfolgingsgrunn ?? ''}`); } if (personData.harOppfolgingsplanLPSBistandUbehandlet) {