Skip to content

Commit

Permalink
Update triggering path in pdlPerson component
Browse files Browse the repository at this point in the history
#deploy-test-frontend

Changed the triggering path in the PdlEksisterendePerson component from 'pdldata.person.kontaktinformasjonForDoedsbo' to 'pdldata.person'. This revision should make the component more effective in broad updates rather than just for specific sub-fields.
  • Loading branch information
krharum committed May 21, 2024
1 parent 6e3d752 commit becf16a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const PdlEksisterendePerson = ({
name={eksisterendePersonPath}
onChange={(person) => {
formMethods.setValue(eksisterendePersonPath, person?.value || null)
formMethods.trigger('pdldata.person.kontaktinformasjonForDoedsbo')
formMethods.trigger('pdldata.person')
}}
label={label}
options={filteredOptions}
Expand Down

0 comments on commit becf16a

Please sign in to comment.