Skip to content

Commit

Permalink
chore: fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
9sneha-n committed Oct 29, 2024
1 parent 362234f commit fd10dd0
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 12 deletions.
4 changes: 0 additions & 4 deletions src/data/repositories/consts/DiseaseOutbreakConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,6 @@ export function getHazardTypeFromString(hazardTypeString: string): HazardType |
);
}

function getOUTextFromList(OUs: string[]): string {
return OUs[0] ?? ""; //TO DO : Handle multiple provinces/districts once metadata change is done
}

function getNaValue(naValue: Maybe<boolean>): string {
return naValue ? "true" : "";
}
5 changes: 0 additions & 5 deletions src/data/repositories/utils/DiseaseOutbreakMapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@ export function mapTrackedEntityAttributesToDiseaseOutbreak(
return diseaseOutbreak;
}

function getMultipleOUFromText(text: string): string[] {
//TO DO : FIXME handle multiple provinces when metadata change is done
return [text].filter(ou => ou !== "");
}

export function mapDiseaseOutbreakEventToTrackedEntityAttributes(
diseaseOutbreak: DiseaseOutbreakEventBaseAttrs,
attributesMetadata: D2TrackedEntityAttribute[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { Struct } from "../generic/Struct";
import { IncidentActionPlan } from "../incident-action-plan/IncidentActionPlan";
import { IncidentManagementTeam } from "../incident-management-team/IncidentManagementTeam";
import { TeamMember } from "../incident-management-team/TeamMember";
import { OrgUnit } from "../OrgUnit";
import { Code, Id, NamedRef } from "../Ref";
import { Code, NamedRef } from "../Ref";
import { RiskAssessment } from "../risk-assessment/RiskAssessment";
import { Maybe } from "../../../utils/ts-utils";
import { ValidationError } from "../ValidationError";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AppConfig } from "../../../../app-config";
import { FutureData } from "../../../../data/api-futures";
import { INCIDENT_MANAGER_ROLE } from "../../../../data/repositories/consts/IncidentManagementTeamBuilderConstants";
import { Configurations } from "../../../entities/AppConfigurations";
Expand Down

0 comments on commit fd10dd0

Please sign in to comment.