Skip to content

Commit

Permalink
Reverted the changes for KM file path in 104
Browse files Browse the repository at this point in the history
  • Loading branch information
Parth Kothari committed May 27, 2024
1 parent 64dc027 commit fe1750d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ export class KnowledgeManagementComponent implements OnInit {
});

if (subcategoryArr.length > 0) {
subcategoryArr[0].fileURL = subcategoryArr[0].fileURL.replace(/^https?:\/\/[^@]+@/, '');
this.subcategoryOBJ = subcategoryArr[0];
}

Expand Down
5 changes: 0 additions & 5 deletions src/app/message-dialog/message-dialog.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ export class MessageDialogComponent implements OnInit {
for (let i = 0; i < this.docs.length; i++) {
this.docs[i]['urls'] = this.checkForURL(this.docs[i].notificationDesc)
}
this.docs.filter(item => {
if(item.kmFilePath !== undefined && item.kmFilePath !== null){
item.kmFilePath = item.kmFilePath.replace(/^https?:\/\/[^@]+@/, '');
}
})
console.log('after urls filtering', this.docs);
}
ngDoCheck() {
Expand Down
5 changes: 0 additions & 5 deletions src/app/sio-scheme-service/sio-scheme-service.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ export class SioSchemeServiceComponent implements OnInit {
getSchemesSuccess(res) {
if (res.length > 0)
this.schemeList = res;
this.schemeList.filter(item => {
if(item.kmFilePath !== undefined || item.kmFilePath !== null){
item.kmFilePath = item.kmFilePath.replace(/^https?:\/\/[^@]+@/, '');
}
})
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -438,11 +438,6 @@ export class SupervisorTrainingResourcesComponent implements OnInit {
.subscribe((response) => {
if (response.length !== 0) {
this.trainingResources = response.data;
this.trainingResources.filter(item => {
if(item.kmFilePath !== undefined && item.kmFilePath !== null){
item.kmFilePath = item.kmFilePath.replace(/^https?:\/\/[^@]+@/, '');
}
})
console.log('Training resources', this.trainingResources);
}
else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,6 @@ export class SupervisorSchemeComponent implements OnInit {
getSchemesSuccess(res) {
if (res.length > 0)
this.schemeList = res;
this.schemeList.filter(item => {
if(item.kmFilePath !== undefined && item.kmFilePath !== null){
item.kmFilePath = item.kmFilePath.replace(/^https?:\/\/[^@]+@/, '');
}
})
}
editScheme(scheme) {
this.create = false;
Expand Down

0 comments on commit fe1750d

Please sign in to comment.