Skip to content

Commit

Permalink
Task #223738: add validation for interface
Browse files Browse the repository at this point in the history
  • Loading branch information
upendraTekdi committed Jul 29, 2024
1 parent 489ef5c commit 0fc7cb4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pages/cohorts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ type UserDetails = {
};

interface CohortDetails {
name: string;
type: string;
parentId: string | null;
customFields: CustomField[];
name?: string;
type?: string;
parentId?: string | null;
customFields?: CustomField[];
}

const Cohorts: React.FC = () => {
Expand Down Expand Up @@ -412,7 +412,7 @@ const Cohorts: React.FC = () => {
) => {
const formData = data.formData;

// const parentId = localStorage.getItem("blockParentId");
const parentId = localStorage.getItem("blockParentId") || "";
const cohortDetails: CohortDetails = {
name: formData.name,
type: "COHORT",
Expand Down

0 comments on commit 0fc7cb4

Please sign in to comment.