Skip to content

Commit

Permalink
Add map based in uploaded case data
Browse files Browse the repository at this point in the history
  • Loading branch information
anagperal committed Dec 13, 2024
1 parent f0f7722 commit 529cf54
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/data/repositories/MapConfigD2Repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ export class MapConfigD2Repository implements MapConfigRepository {
const mapConfigDataStore =
mapKey === "dashboard"
? mapsConfigDatastore?.dashboard
: mapsConfigDatastore?.event_tracker;
: casesDataSource === CasesDataSource.RTSL_ZEB_OS_CASE_DATA_SOURCE_USER_DEF
? mapsConfigDatastore?.event_tracker_cases
: mapsConfigDatastore?.event_tracker_alerts;

return getProgramIndicatorsFromDatastore(
this.dataStoreClient,
programIndicatorsDatastoreKey
Expand Down Expand Up @@ -86,7 +89,8 @@ export class MapConfigD2Repository implements MapConfigRepository {

type MapsConfigDatastore = {
dashboard: MapConfigDatastore;
event_tracker: MapConfigDatastore;
event_tracker_alerts: MapConfigDatastore;
event_tracker_cases: MapConfigDatastore;
};

type MapConfigDatastore = {
Expand Down

0 comments on commit 529cf54

Please sign in to comment.