diff --git a/components/pages/program-entity/ProgramCardsLayout/util.tsx b/components/pages/program-entity/ProgramCardsLayout/util.tsx index f6984b2c1..90d6910d0 100644 --- a/components/pages/program-entity/ProgramCardsLayout/util.tsx +++ b/components/pages/program-entity/ProgramCardsLayout/util.tsx @@ -36,7 +36,6 @@ export const createProgramSummaryData = (programSummaryQuery: ProgramSummaryQuer '' ), Institutions: programSummaryQuery?.institutions?.join(', ') || '', - 'Processing Regions': programSummaryQuery?.regions?.join(', ') || '', 'Cancer Types': programSummaryQuery?.cancerTypes?.join(', ') || '', }; }; diff --git a/components/pages/program-entity/gql/PROGRAM_SUMMARY_QUERY.ts b/components/pages/program-entity/gql/PROGRAM_SUMMARY_QUERY.ts index dbb1a2ee9..048f962c4 100644 --- a/components/pages/program-entity/gql/PROGRAM_SUMMARY_QUERY.ts +++ b/components/pages/program-entity/gql/PROGRAM_SUMMARY_QUERY.ts @@ -28,7 +28,6 @@ const PROGRAM_SUMMARY_QUERY = gql` website institutions countries - regions cancerTypes primarySites } diff --git a/components/pages/program-entity/types.tsx b/components/pages/program-entity/types.tsx index 0e4b7d5a8..dd51aadf2 100644 --- a/components/pages/program-entity/types.tsx +++ b/components/pages/program-entity/types.tsx @@ -24,7 +24,6 @@ export type ProgramSummaryQuery = { website: string; institutions: string[]; countries: string[]; - regions: string[]; cancerTypes: string[]; primarySites: string[]; }; diff --git a/components/pages/submission-system/create-program/index.tsx b/components/pages/submission-system/create-program/index.tsx index bf89c1f10..27c31047c 100644 --- a/components/pages/submission-system/create-program/index.tsx +++ b/components/pages/submission-system/create-program/index.tsx @@ -52,7 +52,6 @@ const createProgramInput = (formData) => ({ website: formData.website, institutions: formData.institutions, countries: formData.countries, - regions: Array.from(formData.processingRegions), membershipType: formData.membershipType, admins: [ { diff --git a/components/pages/submission-system/gql/PROGRAM_VALUES_QUERY.ts b/components/pages/submission-system/gql/PROGRAM_VALUES_QUERY.ts index 25c4898a7..97ec1b0a6 100644 --- a/components/pages/submission-system/gql/PROGRAM_VALUES_QUERY.ts +++ b/components/pages/submission-system/gql/PROGRAM_VALUES_QUERY.ts @@ -25,7 +25,6 @@ const PROGRAM_VALUES_QUERY = gql` cancerTypes primarySites institutions - regions countries } } diff --git a/components/pages/submission-system/program-form/ProgramForm.tsx b/components/pages/submission-system/program-form/ProgramForm.tsx index 5dec27600..4d36e5feb 100644 --- a/components/pages/submission-system/program-form/ProgramForm.tsx +++ b/components/pages/submission-system/program-form/ProgramForm.tsx @@ -81,7 +81,6 @@ export default function CreateProgramForm({ membershipType?: string; website?: string; description?: string; - regions?: string[]; }; onSubmit: (data: any) => any; }) { @@ -96,7 +95,6 @@ export default function CreateProgramForm({ membershipType: string; website: string; description: string; - processingRegions: string[]; adminFirstName?: string; adminLastName?: string; adminEmail?: string; @@ -111,7 +109,6 @@ export default function CreateProgramForm({ membershipType: program.membershipType || '', website: program.website || '', description: program.description || '', - processingRegions: program.regions || [], adminFirstName: '', adminLastName: '', adminEmail: '', @@ -136,8 +133,6 @@ export default function CreateProgramForm({ const { data: { programOptions = undefined } = {}, loading } = useQuery(PROGRAM_VALUES_QUERY); - const regionOptions = get(programOptions, 'regions', []); - /* ****************** * * On Change Handlers * ****************** */ @@ -403,34 +398,6 @@ export default function CreateProgramForm({ - - - Processing Region - - - - - - - - Please indicate the region where data can be processed. - -