Skip to content

Commit

Permalink
Reverted logs & sourcemap updates
Browse files Browse the repository at this point in the history
  • Loading branch information
NandiniAV committed Jun 21, 2022
1 parent 5113e70 commit 8b5b308
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
10 changes: 5 additions & 5 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
],
"optimization": true,
"outputHashing": "all",
"sourceMap": true,
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
Expand All @@ -127,7 +127,7 @@
],
"optimization": true,
"outputHashing": "all",
"sourceMap": true,
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
Expand All @@ -153,7 +153,7 @@
],
"optimization": true,
"outputHashing": "all",
"sourceMap": true,
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
Expand All @@ -179,7 +179,7 @@
],
"optimization": true,
"outputHashing": "all",
"sourceMap": true,
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
Expand All @@ -205,7 +205,7 @@
],
"optimization": true,
"outputHashing": "all",
"sourceMap": true,
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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)
})
}
Expand Down Expand Up @@ -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')
Expand All @@ -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)
Expand All @@ -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
}
}
Expand Down

0 comments on commit 8b5b308

Please sign in to comment.