Skip to content

Commit

Permalink
Merge pull request #1652 from rodekruis/fix.area-list-shows-both-events
Browse files Browse the repository at this point in the history
fix: make triggered-areas api-call after eventName is set
  • Loading branch information
jannisvisser authored Oct 15, 2024
2 parents 0a796cd + b00e14a commit e29119a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -657,11 +657,11 @@ export class MapComponent implements AfterViewInit, OnDestroy {
const event = this.eventState?.events?.find(
(e) => e.eventName === feature.properties.eventName,
);
this.eventService.switchEvent(feature.properties.eventName);
this.timelineService.handleTimeStepButtonClick(
(event?.firstTriggerLeadTime || event?.firstLeadTime) as LeadTime,
event?.eventName,
);
this.eventService.switchEvent(feature.properties.eventName);
}
} else if (this.eventState.event) {
// if in event-view, then set placeCode
Expand Down

0 comments on commit e29119a

Please sign in to comment.