diff --git a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdl/visning/PdlVisning.tsx b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdl/visning/PdlVisning.tsx index 4fec63ab673..355d9e5c8a2 100644 --- a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdl/visning/PdlVisning.tsx +++ b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdl/visning/PdlVisning.tsx @@ -27,6 +27,7 @@ import { getBankkontoData } from '@/components/fagsystem/pdlf/visning/PdlfVisnin type PdlVisningProps = { pdlData: PdlData + tmpPersoner: any fagsystemData?: any loading?: any miljoeVisning?: boolean @@ -34,6 +35,7 @@ type PdlVisningProps = { export const PdlVisning = ({ pdlData, + tmpPersoner, fagsystemData = {}, loading = {}, miljoeVisning = false, @@ -45,7 +47,7 @@ export const PdlVisning = ({ return null } - const { hentPerson, hentIdenter, hentGeografiskTilknytning } = pdlData + const { hentPerson, hentIdenter, hentGeografiskTilknytning, ident } = pdlData const { foedsel, telefonnummer, @@ -67,6 +69,10 @@ export const PdlVisning = ({ const bankkontoData = getBankkontoData(fagsystemData) + const pdlfPerson = fagsystemData?.pdlforvalter?.person + const identtype = pdlfPerson?.identtype + const tmpPdlforvalter = tmpPersoner?.pdlforvalter + return (
@@ -89,12 +95,37 @@ export const PdlVisning = ({ data={bankkontoData} loading={loading?.tpsMessaging || loading?.kontoregister} /> - + - + - - + + diff --git a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdl/visning/PdlVisningConnector.tsx b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdl/visning/PdlVisningConnector.tsx new file mode 100644 index 00000000000..07243d59501 --- /dev/null +++ b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdl/visning/PdlVisningConnector.tsx @@ -0,0 +1,10 @@ +import { PdlVisning } from '@/components/fagsystem/pdl/visning/PdlVisning' +import { connect } from 'react-redux' + +const mapStateToProps = (state: any) => { + return { + tmpPersoner: state?.redigertePersoner, + } +} + +export default connect(mapStateToProps)(PdlVisning) diff --git a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdl/visning/partials/adresser/PdlBoadresse.tsx b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdl/visning/partials/adresser/PdlBoadresse.tsx index 4cb5f3a69d5..cc604eb39e0 100644 --- a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdl/visning/partials/adresser/PdlBoadresse.tsx +++ b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdl/visning/partials/adresser/PdlBoadresse.tsx @@ -1,15 +1,24 @@ import SubOverskrift from '@/components/ui/subOverskrift/SubOverskrift' import { BostedData } from '@/pages/gruppe/PersonVisning/PersonMiljoeinfo/PdlDataTyper' import { ArrayHistorikk } from '@/components/ui/historikk/ArrayHistorikk' -import { Adresse } from '@/components/fagsystem/pdlf/visning/partials/Boadresse' +import { Adresse, BoadresseVisning } from '@/components/fagsystem/pdlf/visning/partials/Boadresse' type PdlBoadresseProps = { data: Array + pdlfData?: Array + tmpPersoner?: any + ident?: string + identtype?: string } type AdresseProps = { data: BostedData idx?: number + alleData?: Array + tmpPersoner?: any + ident?: string + identtype?: string + master?: string } const AdresseVisning = ({ data, idx }: AdresseProps) => { @@ -20,10 +29,42 @@ const AdresseVisning = ({ data, idx }: AdresseProps) => { ) } -export const PdlBoadresse = ({ data }: PdlBoadresseProps) => { - if (!data || data.length === 0) { +const AdresseVisningRedigerbar = ({ + data, + idx, + alleData, + tmpPersoner, + ident, + identtype, + master, +}: AdresseProps) => { + return ( +
+ +
+ ) +} + +export const PdlBoadresse = ({ + data, + pdlfData, + tmpPersoner, + ident, + identtype, +}: PdlBoadresseProps) => { + if ((!data || data.length === 0) && (!tmpPersoner || Object.keys(tmpPersoner).length < 1)) { return null } + const gyldigeAdresser = data.filter((adresse: BostedData) => !adresse.metadata?.historisk) const historiskeAdresser = data.filter((adresse: BostedData) => adresse.metadata?.historisk) @@ -32,8 +73,13 @@ export const PdlBoadresse = ({ data }: PdlBoadresseProps) => { diff --git a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdl/visning/partials/adresser/PdlKontaktadresse.tsx b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdl/visning/partials/adresser/PdlKontaktadresse.tsx index 346b50bfc54..e39d9dbff90 100644 --- a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdl/visning/partials/adresser/PdlKontaktadresse.tsx +++ b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdl/visning/partials/adresser/PdlKontaktadresse.tsx @@ -1,15 +1,29 @@ import SubOverskrift from '@/components/ui/subOverskrift/SubOverskrift' -import { Adresse } from '@/components/fagsystem/pdlf/visning/partials/Kontaktadresse' +import { + Adresse, + KontaktadresseVisning, +} from '@/components/fagsystem/pdlf/visning/partials/Kontaktadresse' import { KontaktadresseData } from '@/pages/gruppe/PersonVisning/PersonMiljoeinfo/PdlDataTyper' import { ArrayHistorikk } from '@/components/ui/historikk/ArrayHistorikk' +import _ from 'lodash' type PdlKontaktadresseProps = { data: Array + pdlfData?: Array + tmpPersoner?: any + ident?: string + identtype?: string } type AdresseProps = { data: KontaktadresseData - idx?: number + idx: number + alleData?: Array + tmpData?: any + tmpPersoner?: any + ident?: string + identtype?: string + master?: string } const AdresseVisning = ({ data, idx }: AdresseProps) => { @@ -20,8 +34,46 @@ const AdresseVisning = ({ data, idx }: AdresseProps) => { ) } -export const PdlKontaktadresse = ({ data }: PdlKontaktadresseProps) => { - if (!data || data.length === 0) { +const AdresseVisningRedigerbar = ({ + data, + idx, + alleData, + tmpData, + tmpPersoner, + ident, + identtype, + master, +}: AdresseProps) => { + return ( +
+ +
+ ) +} + +export const PdlKontaktadresse = ({ + data, + pdlfData, + tmpPersoner, + ident, + identtype, +}: PdlKontaktadresseProps) => { + if ((!data || data.length === 0) && (!tmpPersoner || Object.keys(tmpPersoner).length < 1)) { + return null + } + + const tmpData = _.get(tmpPersoner, `${ident}.person.kontaktadresse`) + if ((!data || data.length === 0) && (!tmpData || tmpData.length < 1)) { return null } @@ -35,8 +87,14 @@ export const PdlKontaktadresse = ({ data }: PdlKontaktadresseProps) => { diff --git a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdl/visning/partials/adresser/PdlOppholdsadresse.tsx b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdl/visning/partials/adresser/PdlOppholdsadresse.tsx index d278cb50cec..0b31e4335e4 100644 --- a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdl/visning/partials/adresser/PdlOppholdsadresse.tsx +++ b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdl/visning/partials/adresser/PdlOppholdsadresse.tsx @@ -1,15 +1,29 @@ import SubOverskrift from '@/components/ui/subOverskrift/SubOverskrift' -import { Adresse } from '@/components/fagsystem/pdlf/visning/partials/Oppholdsadresse' +import { + Adresse, + OppholdsadresseVisning, +} from '@/components/fagsystem/pdlf/visning/partials/Oppholdsadresse' import { OppholdsadresseData } from '@/pages/gruppe/PersonVisning/PersonMiljoeinfo/PdlDataTyper' import { ArrayHistorikk } from '@/components/ui/historikk/ArrayHistorikk' +import _ from 'lodash' type PdlOppholdsadresseProps = { data: Array + pdlfData?: Array + tmpPersoner?: any + ident?: string + identtype?: string } type AdresseProps = { data: OppholdsadresseData idx?: number + alleData?: Array + tmpData?: any + tmpPersoner?: any + ident?: string + identtype?: string + master?: string } const AdresseVisning = ({ data, idx }: AdresseProps) => { @@ -20,8 +34,46 @@ const AdresseVisning = ({ data, idx }: AdresseProps) => { ) } -export const PdlOppholdsadresse = ({ data }: PdlOppholdsadresseProps) => { - if (!data || data.length === 0) { +const AdresseVisningRedigerbar = ({ + data, + idx, + alleData, + tmpData, + tmpPersoner, + ident, + identtype, + master, +}: AdresseProps) => { + return ( +
+ +
+ ) +} + +export const PdlOppholdsadresse = ({ + data, + pdlfData, + tmpPersoner, + ident, + identtype, +}: PdlOppholdsadresseProps) => { + if ((!data || data.length === 0) && (!tmpPersoner || Object.keys(tmpPersoner).length < 1)) { + return null + } + + const tmpData = _.get(tmpPersoner, `${ident}.person.oppholdsadresse`) + if ((!data || data.length === 0) && (!tmpData || tmpData.length < 1)) { return null } @@ -37,8 +89,14 @@ export const PdlOppholdsadresse = ({ data }: PdlOppholdsadresseProps) => { diff --git a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/PdlTypes.tsx b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/PdlTypes.tsx index f9ef9378de6..a4f7364e2de 100644 --- a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/PdlTypes.tsx +++ b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/PdlTypes.tsx @@ -85,6 +85,8 @@ export type Utflytting = { export type AdressebeskyttelseData = { gradering: string id?: number + master?: string + metadata?: any } export type SivilstandData = { diff --git a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/PdlfVisning.tsx b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/PdlfVisning.tsx index 91c87146b6b..7c61a585444 100644 --- a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/PdlfVisning.tsx +++ b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/PdlfVisning.tsx @@ -105,7 +105,7 @@ export const PdlfVisning = ({ fagsystemData, loading, tmpPersoner, erRedigerbar - +
) @@ -56,6 +60,7 @@ const AdressebeskyttelseVisning = ({ ident, identtype, erPdlVisning, + master, }: AdressebeskyttelseVisningTypes) => { const initAdressebeskyttelse = Object.assign( _.cloneDeep(getInitialAdressebeskyttelse()), @@ -97,12 +102,14 @@ const AdressebeskyttelseVisning = ({ path="adressebeskyttelse" ident={ident} identtype={identtype} + master={master} /> ) } export const Adressebeskyttelse = ({ data, + pdlfData, tmpPersoner, ident, identtype, @@ -119,21 +126,29 @@ export const Adressebeskyttelse = ({
- {(adressebeskyttelse: AdressebeskyttelseData, idx: number) => - erRedigerbar ? ( - - ) : ( - + {(adressebeskyttelse: AdressebeskyttelseData, idx: number) => { + const master = adressebeskyttelse?.metadata?.master + const pdlfElement = pdlfData?.find( + (item) => item.hendelseId === adressebeskyttelse?.metadata?.opplysningsId, ) - } + if (erRedigerbar) { + return ( + + ) + } + return + }}
diff --git a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/Boadresse.tsx b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/Boadresse.tsx index 440d9bbcd11..dd5ef205155 100644 --- a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/Boadresse.tsx +++ b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/Boadresse.tsx @@ -29,6 +29,7 @@ type BoadresseVisningTypes = { ident?: string identtype?: string erPdlVisning?: boolean + master?: string } type AdresseTypes = { @@ -40,6 +41,7 @@ export const Adresse = ({ boadresseData, idx }: AdresseTypes) => { if (!boadresseData) { return null } + return ( <> {boadresseData.vegadresse && } @@ -50,7 +52,7 @@ export const Adresse = ({ boadresseData, idx }: AdresseTypes) => { ) } -const BoadresseVisning = ({ +export const BoadresseVisning = ({ boadresseData, idx, data, @@ -58,6 +60,7 @@ const BoadresseVisning = ({ ident, identtype, erPdlVisning, + master, }: BoadresseVisningTypes) => { const initBoadresse = Object.assign(_.cloneDeep(getInitialBostedsadresse()), data[idx]) const initialValues = { bostedsadresse: initBoadresse } @@ -100,6 +103,7 @@ const BoadresseVisning = ({ ident={ident} identtype={identtype} personFoerLeggTil={personFoerLeggTil} + master={master} /> ) } diff --git a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/Kontaktadresse.tsx b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/Kontaktadresse.tsx index 95e33ae68b0..5052b471f24 100644 --- a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/Kontaktadresse.tsx +++ b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/Kontaktadresse.tsx @@ -36,6 +36,7 @@ type KontaktadresseVisningTypes = { ident: number erPdlVisning: boolean identtype?: string + master?: string } type AdresseTypes = { @@ -86,7 +87,10 @@ export const Adresse = ({ kontaktadresseData, idx }: AdresseTypes) => { - + )} @@ -122,6 +126,10 @@ export const Adresse = ({ kontaktadresseData, idx }: AdresseTypes) => { )} + )} @@ -156,6 +164,10 @@ export const Adresse = ({ kontaktadresseData, idx }: AdresseTypes) => { kodeverk={AdresseKodeverk.StatsborgerskapLand} /> + )} @@ -163,7 +175,7 @@ export const Adresse = ({ kontaktadresseData, idx }: AdresseTypes) => { ) } -const KontaktadresseVisning = ({ +export const KontaktadresseVisning = ({ kontaktadresseData, idx, data, @@ -172,6 +184,7 @@ const KontaktadresseVisning = ({ ident, erPdlVisning, identtype, + master, }: KontaktadresseVisningTypes) => { const initKontaktadresse = Object.assign( _.cloneDeep(getInitialKontaktadresse()), @@ -209,6 +222,7 @@ const KontaktadresseVisning = ({ path="kontaktadresse" ident={ident} identtype={identtype} + master={master} /> ) } diff --git a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/Matrikkeladresse.tsx b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/Matrikkeladresse.tsx index 0078dbae450..f4d7618f6cd 100644 --- a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/Matrikkeladresse.tsx +++ b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/Matrikkeladresse.tsx @@ -18,6 +18,7 @@ interface MatrikkeladresseValues { oppholdAnnetSted?: string coAdressenavn?: string metadata: any + master?: string } idx: number } @@ -36,7 +37,7 @@ export const Matrikkeladresse = ({ adresse, idx }: MatrikkeladresseValues) => { metadata, } = adresse - const master = metadata?.master + const master = adresse.master || metadata?.master return ( <> diff --git a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/Oppholdsadresse.tsx b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/Oppholdsadresse.tsx index 40d2ede34ec..d150e52ae79 100644 --- a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/Oppholdsadresse.tsx +++ b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/Oppholdsadresse.tsx @@ -29,10 +29,12 @@ type OppholdsadresseVisningTypes = { oppholdsadresseData: any idx: number data: Array + tmpData: any tmpPersoner: Array ident: string erPdlVisning: boolean identtype?: string + master?: string } export const Adresse = ({ oppholdsadresseData, idx }: AdresseTypes) => { @@ -53,16 +55,21 @@ export const Adresse = ({ oppholdsadresseData, idx }: AdresseTypes) => { ) } -const OppholdsadresseVisning = ({ +export const OppholdsadresseVisning = ({ oppholdsadresseData, idx, data, + tmpData, tmpPersoner, ident, erPdlVisning, identtype, + master, }: OppholdsadresseVisningTypes) => { - const initOppholdsadresse = Object.assign(_.cloneDeep(getInitialOppholdsadresse()), data[idx]) + const initOppholdsadresse = Object.assign( + _.cloneDeep(getInitialOppholdsadresse()), + data[idx] || tmpData?.[idx], + ) const initialValues = { oppholdsadresse: initOppholdsadresse } const redigertOppholdsadressePdlf = _.get(tmpPersoner, `${ident}.person.oppholdsadresse`)?.find( @@ -94,6 +101,7 @@ const OppholdsadresseVisning = ({ path="oppholdsadresse" ident={ident} identtype={identtype} + master={master} /> ) } @@ -106,7 +114,12 @@ export const Oppholdsadresse = ({ identtype, erRedigerbar = true, }: OppholdsadresseTypes) => { - if (!data || data.length === 0) { + if ((!data || data.length === 0) && (!tmpPersoner || Object.keys(tmpPersoner).length < 1)) { + return null + } + + const tmpData = _.get(tmpPersoner, `${ident}.person.oppholdsadresse`) + if ((!data || data.length === 0) && (!tmpData || tmpData.length < 1)) { return null } @@ -115,13 +128,14 @@ export const Oppholdsadresse = ({
- + {(adresse: any, idx: number) => erRedigerbar ? ( { metadata, } = adresse - const master = metadata?.master + const master = adresse.master || metadata?.master return ( <> diff --git a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/UtenlandskAdresse.tsx b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/UtenlandskAdresse.tsx index c670c725bed..8a824f50b50 100644 --- a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/UtenlandskAdresse.tsx +++ b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/UtenlandskAdresse.tsx @@ -23,6 +23,7 @@ type AdresseData = { oppholdAnnetSted?: string coAdressenavn?: string metadata: any + master?: string } idx: number } @@ -46,7 +47,7 @@ export const UtenlandskAdresse = ({ adresse, idx }: AdresseData) => { metadata, } = adresse - const master = metadata?.master + const master = adresse.master || metadata?.master return ( <> diff --git a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/Vegadresse.tsx b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/Vegadresse.tsx index 80b9dd16803..eb2a79d1ede 100644 --- a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/Vegadresse.tsx +++ b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/partials/Vegadresse.tsx @@ -18,6 +18,7 @@ interface VegadresseValues { oppholdAnnetSted?: string coAdressenavn?: string metadata: any + master?: string } idx: number } @@ -43,7 +44,7 @@ export const Vegadresse = ({ adresse, idx }: VegadresseValues) => { coAdressenavn, metadata, } = adresse - const master = metadata?.master + const master = adresse.master || metadata?.master return ( <> diff --git a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/visningRedigerbar/VisningRedigerbar.tsx b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/visningRedigerbar/VisningRedigerbar.tsx index 39d34782fc3..4a459a0087a 100644 --- a/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/visningRedigerbar/VisningRedigerbar.tsx +++ b/apps/dolly-frontend/src/main/js/src/components/fagsystem/pdlf/visning/visningRedigerbar/VisningRedigerbar.tsx @@ -54,6 +54,7 @@ type VisningTypes = { personValues: any relasjoner: any relatertPersonInfo: any + master: any } enum Attributt { @@ -120,6 +121,7 @@ export const VisningRedigerbar = ({ personValues = null, relasjoner = null, relatertPersonInfo = null, + master = null, }: VisningTypes) => { const [visningModus, setVisningModus] = useState(Modus.Les) const [errorMessagePdlf, setErrorMessagePdlf] = useState(null) @@ -267,17 +269,39 @@ export const VisningRedigerbar = ({ /> ) case Attributt.Boadresse: - return + return ( + + ) case Attributt.Oppholdsadresse: - return + return ( + + ) case Attributt.Kontaktadresse: - return + return ( + + ) case Attributt.Adressebeskyttelse: return ( ) case Attributt.DeltBosted: diff --git a/apps/dolly-frontend/src/main/js/src/components/ui/historikk/ArrayHistorikk.tsx b/apps/dolly-frontend/src/main/js/src/components/ui/historikk/ArrayHistorikk.tsx index 02836d9110d..28113731d96 100644 --- a/apps/dolly-frontend/src/main/js/src/components/ui/historikk/ArrayHistorikk.tsx +++ b/apps/dolly-frontend/src/main/js/src/components/ui/historikk/ArrayHistorikk.tsx @@ -3,16 +3,49 @@ import { ErrorBoundary } from '@/components/ui/appError/ErrorBoundary' import Panel from '@/components/ui/panel/Panel' import './historikk.less' -export const ArrayHistorikk = ({ component, data, historiskData, header }) => { +export const ArrayHistorikk = ({ + component, + componentRedigerbar, + data, + pdlfData, + historiskData, + tmpData, + tmpPersoner, + ident, + identtype, + header, +}) => { const Main = component + const MainRedigerbar = componentRedigerbar const historikkHeader = header !== '' ? header + ' historikk' : 'Historikk' + const getComponent = (element, idx) => { + const pdlfElement = pdlfData?.find((item) => item.hendelseId === element.metadata.opplysningsId) + if (element.metadata.master === 'PDL' && pdlfElement) { + return ( + + ) + } + return
+ } + return (
{data?.length > 0 && ( - {(element, idx) =>
} + {(element, idx) => { + return getComponent(element, idx) + }} )} @@ -20,7 +53,9 @@ export const ArrayHistorikk = ({ component, data, historiskData, header }) => { - {(element, idx) =>
} + {(element, idx) => { + return getComponent(element, idx) + }} diff --git a/apps/dolly-frontend/src/main/js/src/pages/gruppe/PersonVisning/PersonMiljoeinfo/PdlDataTyper.tsx b/apps/dolly-frontend/src/main/js/src/pages/gruppe/PersonVisning/PersonMiljoeinfo/PdlDataTyper.tsx index 1ee4089fe22..ff1772e925b 100644 --- a/apps/dolly-frontend/src/main/js/src/pages/gruppe/PersonVisning/PersonMiljoeinfo/PdlDataTyper.tsx +++ b/apps/dolly-frontend/src/main/js/src/pages/gruppe/PersonVisning/PersonMiljoeinfo/PdlDataTyper.tsx @@ -27,6 +27,7 @@ export type PdlData = { hentIdenter: { identer: [Ident] } hentPerson: HentPerson hentGeografiskTilknytning: object + ident?: string } export type PdlError = { diff --git a/apps/dolly-frontend/src/main/js/src/pages/gruppe/PersonVisning/PersonVisning.tsx b/apps/dolly-frontend/src/main/js/src/pages/gruppe/PersonVisning/PersonVisning.tsx index 3ec10eeb204..dd49d9fffd9 100644 --- a/apps/dolly-frontend/src/main/js/src/pages/gruppe/PersonVisning/PersonVisning.tsx +++ b/apps/dolly-frontend/src/main/js/src/pages/gruppe/PersonVisning/PersonVisning.tsx @@ -90,6 +90,7 @@ import useBoolean from '@/utils/hooks/useBoolean' import { MalModal, malTyper } from '@/pages/minSide/maler/MalModal' import { useTenorOversikt } from '@/utils/hooks/useTenorSoek' import { SkatteetatenVisning } from '@/components/fagsystem/skatteetaten/visning/SkatteetatenVisning' +import PdlVisningConnector from '@/components/fagsystem/pdl/visning/PdlVisningConnector' const getIdenttype = (ident) => { if (parseInt(ident.charAt(0)) > 3) { @@ -432,7 +433,7 @@ export default ({ )} {ident.master === 'PDLF' && } {ident.master === 'PDL' && ( - + )} {visArbeidsforhold && (