From 06beefe57de05608800490f60f41899dbf6aec0d Mon Sep 17 00:00:00 2001 From: Parth Kothari Date: Tue, 21 May 2024 13:39:59 +0530 Subject: [PATCH] Bug fix for file path in co-info and knowledge management --- .../co-information-services.component.ts | 6 ++++++ .../knowledge-management/knowledge-management.component.ts | 1 + 2 files changed, 7 insertions(+) diff --git a/src/app/co-information-services/co-information-services.component.ts b/src/app/co-information-services/co-information-services.component.ts index fff6696c..52d959e6 100644 --- a/src/app/co-information-services/co-information-services.component.ts +++ b/src/app/co-information-services/co-information-services.component.ts @@ -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(); diff --git a/src/app/knowledge-management/knowledge-management.component.ts b/src/app/knowledge-management/knowledge-management.component.ts index b8cc0907..cb4c2f1a 100644 --- a/src/app/knowledge-management/knowledge-management.component.ts +++ b/src/app/knowledge-management/knowledge-management.component.ts @@ -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]; }