Skip to content

Commit

Permalink
removed changes for 304
Browse files Browse the repository at this point in the history
  • Loading branch information
Suryansh5545 committed Aug 8, 2023
1 parent c3c2da8 commit 4fda3aa
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions frontend/src/app/services/event-details/event-details.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,11 @@ export class EventDetailsService {
EventDetails(): Promise<void> {
return new Promise<void>((resolve, reject) => {
this.HttpService.get<Event[]>('event/get_event').subscribe(data => {
if (data === null || data.length === 0) {
this.router.navigate(['/maintenance']);
resolve();
} else {
this.event = data;
resolve();
}
this.event = data;
resolve();
}, error => {
this.router.navigate(['/maintenance']);
reject(error);
reject(error);
});
});
}
Expand Down

0 comments on commit 4fda3aa

Please sign in to comment.