From 1e10db6f3ee6d7e8e28af29e3ca6a1baf2db256d Mon Sep 17 00:00:00 2001 From: Alejandro-Vega Date: Wed, 16 Oct 2024 12:15:14 -0400 Subject: [PATCH] Remove unused properties from query, type, and tests --- .../DataSubmissionSummary.test.tsx | 15 --------------- src/graphql/getSubmission.ts | 3 --- src/types/Submissions.d.ts | 2 +- 3 files changed, 1 insertion(+), 19 deletions(-) diff --git a/src/components/DataSubmissions/DataSubmissionSummary.test.tsx b/src/components/DataSubmissions/DataSubmissionSummary.test.tsx index 64fd2aba..7ed8f870 100644 --- a/src/components/DataSubmissions/DataSubmissionSummary.test.tsx +++ b/src/components/DataSubmissions/DataSubmissionSummary.test.tsx @@ -58,9 +58,6 @@ describe("Basic Functionality", () => { Organization: { orgID: "", orgName: "", - status: "Active", - createdAt: "", - updateAt: "", }, permission: "Can View", }, @@ -70,9 +67,6 @@ describe("Basic Functionality", () => { Organization: { orgID: "", orgName: "", - status: "Active", - createdAt: "", - updateAt: "", }, permission: "Can View", }, @@ -124,9 +118,6 @@ describe("Basic Functionality", () => { Organization: { orgID: "", orgName: "", - status: "Active", - createdAt: "", - updateAt: "", }, permission: "Can View", }, @@ -136,9 +127,6 @@ describe("Basic Functionality", () => { Organization: { orgID: "", orgName: "", - status: "Active", - createdAt: "", - updateAt: "", }, permission: "Can View", }, @@ -148,9 +136,6 @@ describe("Basic Functionality", () => { Organization: { orgID: "", orgName: "", - status: "Active", - createdAt: "", - updateAt: "", }, permission: "Can View", }, diff --git a/src/graphql/getSubmission.ts b/src/graphql/getSubmission.ts index 7bcac1c2..b7b07e27 100644 --- a/src/graphql/getSubmission.ts +++ b/src/graphql/getSubmission.ts @@ -64,9 +64,6 @@ export const query = gql` Organization { orgID orgName - status - createdAt - updateAt } permission } diff --git a/src/types/Submissions.d.ts b/src/types/Submissions.d.ts index a9c2e13f..600864b5 100644 --- a/src/types/Submissions.d.ts +++ b/src/types/Submissions.d.ts @@ -401,6 +401,6 @@ type CollaboratorPermissions = "Can View" | "Can Edit"; type Collaborator = { collaboratorID: string; collaboratorName: string; - Organization: OrgInfo; + Organization: Pick; permission: CollaboratorPermissions; };