From 8b5b30876b1c75a79abbbb876c340da4fe7fc649 Mon Sep 17 00:00:00 2001 From: NandiniAV Date: Tue, 21 Jun 2022 18:07:25 +0530 Subject: [PATCH] Reverted logs & sourcemap updates --- angular.json | 10 +++++----- .../events/routes/list/list-event.component.ts | 16 ---------------- 2 files changed, 5 insertions(+), 21 deletions(-) diff --git a/angular.json b/angular.json index a4d2e967d..4037c51b9 100644 --- a/angular.json +++ b/angular.json @@ -101,7 +101,7 @@ ], "optimization": true, "outputHashing": "all", - "sourceMap": true, + "sourceMap": false, "extractCss": true, "namedChunks": false, "aot": true, @@ -127,7 +127,7 @@ ], "optimization": true, "outputHashing": "all", - "sourceMap": true, + "sourceMap": false, "extractCss": true, "namedChunks": false, "aot": true, @@ -153,7 +153,7 @@ ], "optimization": true, "outputHashing": "all", - "sourceMap": true, + "sourceMap": false, "extractCss": true, "namedChunks": false, "aot": true, @@ -179,7 +179,7 @@ ], "optimization": true, "outputHashing": "all", - "sourceMap": true, + "sourceMap": false, "extractCss": true, "namedChunks": false, "aot": true, @@ -205,7 +205,7 @@ ], "optimization": true, "outputHashing": "all", - "sourceMap": true, + "sourceMap": false, "extractCss": true, "namedChunks": false, "aot": true, diff --git a/project/ws/app/src/lib/routes/events/routes/list/list-event.component.ts b/project/ws/app/src/lib/routes/events/routes/list/list-event.component.ts index af60c0cd8..1c81166d6 100644 --- a/project/ws/app/src/lib/routes/events/routes/list/list-event.component.ts +++ b/project/ws/app/src/lib/routes/events/routes/list/list-event.component.ts @@ -41,13 +41,9 @@ export class ListEventComponent implements OnInit, AfterViewInit, OnDestroy { this.currentUser = this.configSvc.userProfile && this.configSvc.userProfile.userId this.department = this.configSvc.userProfile && this.configSvc.userProfile.departmentName this.departmentID = this.configSvc.userProfile && this.configSvc.userProfile.rootOrgId - // tslint:disable-next-line:no-console - console.log('departmentID', this.departmentID) } else { if (_.get(this.activeRoute, 'snapshot.data.configService.userProfile.rootOrgId')) { this.departmentID = _.get(this.activeRoute, 'snapshot.data.configService.userProfile.rootOrgId') - // tslint:disable-next-line:no-console - console.log('departmentID', this.departmentID) } if (_.get(this.activeRoute, 'snapshot.data.configService.userProfile.departmentName')) { this.department = _.get(this.activeRoute, 'snapshot.data.configService.userProfile.departmentName') @@ -107,8 +103,6 @@ export class ListEventComponent implements OnInit, AfterViewInit, OnDestroy { } this.eventSvc.getEventsList(requestObj).subscribe((events: any) => { - // tslint:disable-next-line:no-console - console.log('events', events) this.setEventListData(events) }) } @@ -143,8 +137,6 @@ export class ListEventComponent implements OnInit, AfterViewInit, OnDestroy { } const isPast = this.compareDate(expiryDateFormat); (isPast) ? this.eventData['pastEvents'].push(eventDataObj) : this.eventData['upcomingEvents'].push(eventDataObj) - // tslint:disable-next-line:no-console - console.log('eventDataObj', eventDataObj) } }) this.filter('upcoming') @@ -167,8 +159,6 @@ export class ListEventComponent implements OnInit, AfterViewInit, OnDestroy { filter(key: string | 'timestamp' | 'best' | 'saved') { const upcomingEventsData: any[] = [] const pastEventsData: any[] = [] - // tslint:disable-next-line:no-console - console.log('eventData', this.eventData) if (this.eventData['pastEvents'] && this.eventData['pastEvents'].length > 0) { this.eventData['pastEvents'].forEach((event: any) => { pastEventsData.push(event) @@ -186,18 +176,12 @@ export class ListEventComponent implements OnInit, AfterViewInit, OnDestroy { switch (key) { case 'upcoming': this.data = upcomingEventsData - // tslint:disable-next-line:no-console - console.log('data', this.data) break case 'past': this.data = pastEventsData - // tslint:disable-next-line:no-console - console.log('data', this.data) break default: this.data = upcomingEventsData - // tslint:disable-next-line:no-console - console.log('data', this.data) break } }