mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
remove promise bug
This commit is contained in:
@@ -195,7 +195,9 @@ export class EventsPage implements OnInit {
|
||||
|
||||
if(this.loggeduser.OwnerCalendars.length >= 1) {
|
||||
|
||||
let onwEvent:any = await this.eventService.getAllOwnEvents(start, end)
|
||||
let onwEvent:any = await this.eventService.getAllOwnEvents(start, end).catch((error) => {
|
||||
console.error(error)
|
||||
})
|
||||
this.listToPresent = onwEvent;
|
||||
this.totalEvent = onwEvent.length;
|
||||
this.showLoader = false;
|
||||
|
||||
Reference in New Issue
Block a user