-
- {(item: FoedselData, idx: number) =>
- erRedigerbar ? (
-
- ) : (
-
- )
- }
-
+ {harFoedested || foedselsdato ? (
+ <>
+ {harFoedested && (
+
+
+ {(item: FoedestedData, idx: number) =>
+ erRedigerbar ? (
+
+ ) : (
+
+ )
+ }
+
+
+ )}
+ {harFoedselsdato && (
+
+
+ {(item: FoedselsdatoData, idx: number) =>
+ erRedigerbar ? (
+
+ ) : (
+
+ )
+ }
+
+
+ )}
+ >
+ ) : (
+
+ {(item: FoedselData, idx: number) =>
+ erRedigerbar ? (
+
+ ) : (
+
+ )
+ }
+
+ )}
diff --git a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/RelatertPerson.tsx b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/RelatertPerson.tsx
index bf0586f0e4c..4ef5597e89b 100644
--- a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/RelatertPerson.tsx
+++ b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/RelatertPerson.tsx
@@ -45,7 +45,10 @@ export const RelatertPerson = ({ data, tittel, marginTop = '0' }: RelatertPerson