From 4ab48fea4d65a7b0f81b30866084e947cc65ae32 Mon Sep 17 00:00:00 2001 From: utsukta1 Date: Tue, 16 Jan 2024 10:21:05 +0545 Subject: [PATCH] Delete test.txt file --- .../RapidResponsePerosnnelTable/index.tsx | 13 ++- test.txt | 94 ------------------- 2 files changed, 9 insertions(+), 98 deletions(-) delete mode 100644 test.txt diff --git a/src/views/EmergencySurge/RapidResponsePerosnnelTable/index.tsx b/src/views/EmergencySurge/RapidResponsePerosnnelTable/index.tsx index 63f230c03a..9d1d7b4f1e 100644 --- a/src/views/EmergencySurge/RapidResponsePerosnnelTable/index.tsx +++ b/src/views/EmergencySurge/RapidResponsePerosnnelTable/index.tsx @@ -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( diff --git a/test.txt b/test.txt deleted file mode 100644 index 62f48991e4..0000000000 --- a/test.txt +++ /dev/null @@ -1,94 +0,0 @@ -On branch fix/dref-forms -Changes not staged for commit: - (use "git add ..." to update what will be committed) - (use "git restore ..." to discard changes in working directory) - modified: package.json - modified: src/App/PageError/index.tsx - modified: src/App/index.tsx - modified: src/App/routes/index.tsx - modified: src/components/Link/index.tsx - modified: src/components/domain/ActiveOperationMap/i18n.json - modified: src/components/domain/ActiveOperationMap/index.tsx - modified: src/components/domain/ActiveOperationMap/styles.module.css - modified: src/components/domain/AppealsTable/i18n.json - modified: src/components/domain/AppealsTable/index.tsx - modified: src/components/domain/HighlightedOperations/i18n.json - modified: src/components/domain/HighlightedOperations/index.tsx - modified: src/components/domain/RiskSeasonalMap/index.tsx - modified: src/hooks/useRouting.ts - modified: src/utils/outletContext.ts - modified: src/views/AccountMyFormsPer/index.tsx - modified: src/views/AccountMyFormsThreeW/index.tsx - modified: src/views/AllAppeals/index.tsx - modified: src/views/Country/i18n.json - modified: src/views/Country/index.tsx - modified: src/views/CountryPlan/MembershipCoordinationTable/i18n.json - modified: src/views/CountryPlan/MembershipCoordinationTable/index.tsx - modified: src/views/CountryPlan/MembershipCoordinationTable/styles.module.css - modified: src/views/CountryPlan/StrategicPrioritiesTable/i18n.json - modified: src/views/CountryPlan/StrategicPrioritiesTable/index.tsx - modified: src/views/CountryPlan/i18n.json - modified: src/views/CountryPlan/index.tsx - modified: src/views/CountryPlan/styles.module.css - modified: src/views/CountryPreparedness/i18n.json - modified: src/views/CountryPreparedness/index.tsx - modified: src/views/CountryPreparedness/styles.module.css - modified: src/views/CountryRiskWatch/MultiMonthSelectInput/i18n.json - modified: src/views/CountryRiskWatch/MultiMonthSelectInput/index.tsx - modified: src/views/CountryRiskWatch/MultiMonthSelectInput/styles.module.css - modified: src/views/CountryRiskWatch/PossibleEarlyActionTable/i18n.json - modified: src/views/CountryRiskWatch/PossibleEarlyActionTable/index.tsx - modified: src/views/CountryRiskWatch/PossibleEarlyActionTable/styles.module.css - modified: src/views/CountryRiskWatch/ReturnPeriodTable/i18n.json - modified: src/views/CountryRiskWatch/ReturnPeriodTable/index.tsx - modified: src/views/CountryRiskWatch/ReturnPeriodTable/styles.module.css - modified: src/views/CountryRiskWatch/RiskBarChart/CombinedChart/i18n.json - modified: src/views/CountryRiskWatch/RiskBarChart/CombinedChart/index.tsx - modified: src/views/CountryRiskWatch/RiskBarChart/CombinedChart/styles.module.css - modified: src/views/CountryRiskWatch/RiskBarChart/FoodInsecurityChart/index.tsx - modified: src/views/CountryRiskWatch/RiskBarChart/FoodInsecurityChart/styles.module.css - modified: src/views/CountryRiskWatch/RiskBarChart/WildfireChart/i18n.json - modified: src/views/CountryRiskWatch/RiskBarChart/WildfireChart/index.tsx - modified: src/views/CountryRiskWatch/RiskBarChart/WildfireChart/styles.module.css - modified: src/views/CountryRiskWatch/RiskBarChart/i18n.json - modified: src/views/CountryRiskWatch/RiskBarChart/index.tsx - modified: src/views/CountryRiskWatch/RiskBarChart/styles.module.css - modified: src/views/CountryRiskWatch/RiskTable/i18n.json - modified: src/views/CountryRiskWatch/RiskTable/index.tsx - modified: src/views/CountryRiskWatch/RiskTable/styles.module.css - modified: src/views/CountryRiskWatch/i18n.json - modified: src/views/CountryRiskWatch/index.tsx - modified: src/views/CountryRiskWatch/styles.module.css - modified: src/views/CountryThreeW/index.tsx - modified: src/views/CountryThreeWNationalSocietyProjects/Filters/i18n.json - modified: src/views/CountryThreeWNationalSocietyProjects/Filters/index.tsx - modified: src/views/CountryThreeWNationalSocietyProjects/Filters/styles.module.css - modified: src/views/CountryThreeWNationalSocietyProjects/Map/i18n.json - modified: src/views/CountryThreeWNationalSocietyProjects/Map/index.tsx - modified: src/views/CountryThreeWNationalSocietyProjects/Map/styles.module.css - modified: src/views/CountryThreeWNationalSocietyProjects/i18n.json - modified: src/views/CountryThreeWNationalSocietyProjects/index.tsx - modified: src/views/CountryThreeWNationalSocietyProjects/styles.module.css - modified: src/views/CountryThreeWProjects/Filters/i18n.json - modified: src/views/CountryThreeWProjects/Filters/index.tsx - modified: src/views/CountryThreeWProjects/Filters/styles.module.css - modified: src/views/CountryThreeWProjects/Map/i18n.json - modified: src/views/CountryThreeWProjects/Map/index.tsx - modified: src/views/CountryThreeWProjects/Map/styles.module.css - modified: src/views/CountryThreeWProjects/i18n.json - modified: src/views/CountryThreeWProjects/index.tsx - modified: src/views/CountryThreeWProjects/styles.module.css - modified: src/views/DrefApplicationExport/index.tsx - modified: src/views/DrefFinalReportExport/index.tsx - modified: src/views/DrefFinalReportForm/Overview/index.tsx - modified: src/views/DrefOperationalUpdateExport/index.tsx - modified: src/views/DrefOperationalUpdateForm/schema.ts - modified: src/views/RegionProfile/i18n.json - modified: src/views/RegionProfile/index.tsx - modified: src/views/ThreeWProjectDetail/index.tsx - -Untracked files: - (use "git add ..." to include in what will be committed) - test.txt - -no changes added to commit (use "git add" and/or "git commit -a")