Skip to content

Commit

Permalink
Remove extra divider on Death form's Spouse section
Browse files Browse the repository at this point in the history
* Also update the precedingFieldId of the defaultAddressConfiguration

(#7404)[opencrvs/opencrvs-core#7404]
  • Loading branch information
Siyasanga committed Sep 18, 2024
1 parent c29fc9c commit 4a0feb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/form/addresses/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,8 @@ export const defaultAddressConfiguration: IAddressConfiguration[] = [
},*/
{
// SPOUSE ADDRESS FIELDS
precedingFieldId: 'death.spouse.spouse-view-group.spouse-nid-seperator',
precedingFieldId:
'death.spouse.spouse-view-group.spouseBirthRegistrationNumber',
configurations: [
{
config: AddressSubsections.PRIMARY_ADDRESS_SUBSECTION,
Expand Down
2 changes: 0 additions & 2 deletions src/form/death/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,6 @@ export const deathForm = {
),
getIDType('death', 'spouse', detailsExist, true),
...getIDNumberFields('spouse', detailsExist, true),
// preceding field of address fields
divider('spouse-nid-seperator', detailsExist),
// ADDRESS FIELDS WILL RENDER HERE
divider('spouse-address-separator')
],
Expand Down

0 comments on commit 4a0feb6

Please sign in to comment.