Skip to content

Commit

Permalink
fix: bug when switching to no-trigger drought AB#14757
Browse files Browse the repository at this point in the history
  • Loading branch information
jannisvisser committed Aug 8, 2022
1 parent 5d9ac53 commit 9e3353d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion interfaces/IBF-dashboard/src/app/services/map.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ export class MapService {
return zip(admDynamicDataObs, adminRegionsObs).pipe(
map(([admDynamicData, adminRegions]) => {
const updatedFeatures = [];
for (const area of adminRegions.features) {
for (const area of adminRegions?.features || []) {
const foundAdmDynamicEntry = admDynamicData.find(
(admDynamicEntry): number => {
if (area.properties.placeCode === admDynamicEntry.placeCode) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export class TimelineService {
};

private onDisasterTypeChange = (disasterType: DisasterType) => {
this.triggersAllEvents = null;
this.disasterType = disasterType;
};

Expand Down

0 comments on commit 9e3353d

Please sign in to comment.