File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1010 */
1111
1212import { AdvancedSearchConfig , event , field } from '@opencrvs/toolkit/events'
13+ import { placeOfDeathOptions } from './forms/pages/eventDetails'
1314const deceasedPrefix = {
1415 id : 'death.search.criteria.label.prefix.deceased' ,
1516 defaultMessage : "Deceased's" ,
@@ -60,10 +61,13 @@ export const advancedSearchDeath = [
6061 id : 'advancedSearch.form.eventDetails'
6162 } ,
6263 fields : [
64+ field ( 'eventDetails.placeOfDeath' , {
65+ options : placeOfDeathOptions
66+ } ) . exact ( ) ,
6367 field ( 'eventDetails.deathLocation' , {
64- conditionals : [ ] ,
6568 searchCriteriaLabelPrefix : deceasedPrefix
66- } ) . exact ( )
69+ } ) . exact ( ) ,
70+ field ( 'eventDetails.deathLocationOther' , { } ) . exact ( )
6771 ]
6872 } ,
6973 {
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ const placeOfDeathMessageDescriptors = {
132132 }
133133} satisfies Record < keyof typeof PlaceOfDeath , TranslationConfig >
134134
135- const placeOfDeathOptions = createSelectOptions (
135+ export const placeOfDeathOptions = createSelectOptions (
136136 PlaceOfDeath ,
137137 placeOfDeathMessageDescriptors
138138)
You can’t perform that action at this time.
0 commit comments