Skip to content

Commit

Permalink
Change in operator in logic of trimming the url in 104
Browse files Browse the repository at this point in the history
  • Loading branch information
Parth Kothari committed May 24, 2024
1 parent 66b1206 commit 64dc027
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/message-dialog/message-dialog.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class MessageDialogComponent implements OnInit {
this.docs[i]['urls'] = this.checkForURL(this.docs[i].notificationDesc)
}
this.docs.filter(item => {
if(item.kmFilePath !== undefined || item.kmFilePath !== null){
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 @@ -439,7 +439,7 @@ export class SupervisorTrainingResourcesComponent implements OnInit {
if (response.length !== 0) {
this.trainingResources = response.data;
this.trainingResources.filter(item => {
if(item.kmFilePath !== undefined || item.kmFilePath !== null){
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 @@ -283,7 +283,7 @@ export class SupervisorSchemeComponent implements OnInit {
if (res.length > 0)
this.schemeList = res;
this.schemeList.filter(item => {
if(item.kmFilePath !== undefined || item.kmFilePath !== null){
if(item.kmFilePath !== undefined && item.kmFilePath !== null){
item.kmFilePath = item.kmFilePath.replace(/^https?:\/\/[^@]+@/, '');
}
})
Expand Down

0 comments on commit 64dc027

Please sign in to comment.