Skip to content

Commit

Permalink
Error message display in rapid response personnel table
Browse files Browse the repository at this point in the history
  • Loading branch information
utsukta1 committed Jan 16, 2024
1 parent 2330ad4 commit 149d6b1
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/views/EmergencySurge/RapidResponsePerosnnelTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,15 @@ export default function RapidResponsePersonnelTable(props: Props) {
'country_from',
strings.personnelTableDeployedParty,
(item) => item.country_from?.society_name,
(item) => ({
to: 'countriesLayout',
urlParams: { countryId: item.country_from?.id },
}),
(item) => {
if (item.country_from?.id) {
return {
to: 'countriesLayout',
urlParams: { countryId: item.country_from?.id },
};
}
return strings.emergencySurgePartyNotFound;
},
{ sortable: true },
),
createLinkColumn<PersonnelTableItem, number>(
Expand Down

0 comments on commit 149d6b1

Please sign in to comment.