Skip to content

Commit

Permalink
add redirect on 204
Browse files Browse the repository at this point in the history
  • Loading branch information
Suryansh5545 committed Aug 10, 2023
1 parent 11d48cd commit fd69aae
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export class EventDetailsService {
EventDetails(): Promise<void> {
return new Promise<void>((resolve, reject) => {
this.HttpService.get<Event[]>('event/get_event').subscribe(data => {
if (data.length == 0) this.router.navigate(['/maintenance']);
this.event = data;
resolve();
}, error => {
Expand Down

0 comments on commit fd69aae

Please sign in to comment.