From a6850f903331fbe7edf0b2672be099040135bf71 Mon Sep 17 00:00:00 2001 From: JaySoni1 Date: Tue, 4 Nov 2025 01:26:20 +0530 Subject: [PATCH] WEB-365 Utilizing Bulk Loan Reassignment does not work at all --- .../bulk-loan-reassignmnet.component.html | 4 +++- .../bulk-loan-reassignmnet.component.ts | 12 ++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/app/organization/bulk-loan-reassignmnet/bulk-loan-reassignmnet.component.html b/src/app/organization/bulk-loan-reassignmnet/bulk-loan-reassignmnet.component.html index 4c6b9d24f..fca24bc8b 100644 --- a/src/app/organization/bulk-loan-reassignmnet/bulk-loan-reassignmnet.component.html +++ b/src/app/organization/bulk-loan-reassignmnet/bulk-loan-reassignmnet.component.html @@ -106,7 +106,9 @@ - {{ loans.productName }}({{ loans.accountNo }}) + {{ loans.productName }}({{ loans.accountNo }}) diff --git a/src/app/organization/bulk-loan-reassignmnet/bulk-loan-reassignmnet.component.ts b/src/app/organization/bulk-loan-reassignmnet/bulk-loan-reassignmnet.component.ts index 4f3d65c78..4b19fe5a7 100644 --- a/src/app/organization/bulk-loan-reassignmnet/bulk-loan-reassignmnet.component.ts +++ b/src/app/organization/bulk-loan-reassignmnet/bulk-loan-reassignmnet.component.ts @@ -107,10 +107,14 @@ export class BulkLoanReassignmnetComponent implements OnInit { * @param officerId Office Id. */ getFromOfficers(officerId: any) { - this.toLoanOfficers = this.fromLoanOfficers.filter((officer: any) => officer.id !== officerId); - this.organizationSevice.getOfficerTemplate(officerId, this.officeTemplate.id).subscribe((response: any) => { - this.officerTemplate = response; - }); + this.toLoanOfficers = this.fromLoanOfficers?.filter((officer: any) => officer.id !== officerId) || []; + if (officerId && this.officeTemplate && this.officeTemplate.id) { + this.organizationSevice.getOfficerTemplate(officerId, this.officeTemplate.id).subscribe((response: any) => { + this.officerTemplate = response; + }); + } else { + this.officerTemplate = undefined; + } } /**