Skip to content

Commit

Permalink
Check for invalid eventNumber (#2050)
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhpalp authored Jul 24, 2024
1 parent 7623340 commit a6ebd94
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ export class PublicEventPageComponent {

async populateIncident(eventNumber: string) {
const simpleIncident: SimpleIncident = new SimpleIncident();
if (!eventNumber) {
return;
}
try {
this.publishedIncidentService.fetchPublishedIncident(eventNumber).subscribe(response => {
if (response) {
Expand Down

0 comments on commit a6ebd94

Please sign in to comment.