Skip to content

Commit

Permalink
Bug fix for file path in co-info and knowledge management
Browse files Browse the repository at this point in the history
  • Loading branch information
Parth Kothari committed May 21, 2024
1 parent 0445e95 commit 06beefe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ export class CoInformationServicesComponent implements OnInit {
if (response) {
this.GetInformationHistory();
this.detailsList = response;
this.detailsList.filter(item => {
if(item.subCatFilePath !== undefined || item.subCatFilePath !== null){
item.subCatFilePath = item.subCatFilePath.replace("http://guest:guest@", "");
}
});
console.log("detailsList", this.detailsList);
this.getDetailsFlag = true;
this.enableFileDetails=true;
this.informationServiceProvided.emit();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ export class KnowledgeManagementComponent implements OnInit {


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

Expand Down

0 comments on commit 06beefe

Please sign in to comment.