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;
+ }
}
/**