Skip to content

Commit

Permalink
Merge branch 'main' into feat/fjern-familie-fra-url
Browse files Browse the repository at this point in the history
  • Loading branch information
kristeine authored Mar 13, 2024
2 parents 7ab684a + 930ae9f commit 3c01ad2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/csp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const cspMap = (dekoratorenUrl: string): Record<string, string[]> => {
'connect-src': [
"'self'",
'*.nav.no',
'by26nl8j.apicdn.sanity.io',
'amplitude.nav.no',
'*.psplugin.com',
'familie-dokument.dev.nav.no',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ const TekstBlock: React.FC<{
);
},
},
types: {
flettefelt: props =>
flettefeltTilTekst(props.value.flettefelt, flettefelter, valgtLocale),
},
}}
/>
) : null;
Expand Down
2 changes: 2 additions & 0 deletions src/frontend/utils/sanity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ export const plainTekstHof =
? pipe(node => node, ...transformedMarks)(child).text
: pipe(node => node)(child).text;
previousElementIsNonSpan = false;
} else if (child._type == 'flettefelt') {
tekst += flettefeltTilTekst(child.flettefelt, flettefelter, spesifikkLocale);
} else {
previousElementIsNonSpan = true;
}
Expand Down

0 comments on commit 3c01ad2

Please sign in to comment.