Skip to content

Commit

Permalink
Merge pull request #1638 from IFRCGo/fix/appeal-type-search-result
Browse files Browse the repository at this point in the history
Display properly formatted appeal type in search results
  • Loading branch information
frozenhelium authored Jan 29, 2025
2 parents c47decb + 5d9c18a commit 817d56d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/views/Search/useColumns/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function useColumns(searchResponse: SearchResponse | undefined) {
createStringColumn<EmergencyResult, number>(
'appeal_type',
strings.searchEmergencyTableAppealType,
(emergency) => emergency.appeal_type ?? DEFAULT_INVALID_TEXT,
(emergency) => emergency.appeals.map((appeal) => appeal.atype).join(', ') ?? DEFAULT_INVALID_TEXT,
),
createStringColumn<EmergencyResult, number>(
'disaster_type',
Expand Down

0 comments on commit 817d56d

Please sign in to comment.