Fix for Loan locked screen is broken
This commit is contained in:
committed by
Adam Saghy
parent
8f1417b570
commit
d9edc557b6
@@ -71,7 +71,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="alert" *ngIf="loans.length === 0">
|
<div class="alert" *ngIf="loans && loans.length === 0">
|
||||||
|
|
||||||
<div class="message">
|
<div class="message">
|
||||||
<i class="fa fa-exclamation-circle alert-check"></i>
|
<i class="fa fa-exclamation-circle alert-check"></i>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import { TasksService } from 'app/tasks/tasks.service';
|
|||||||
export class LoanLockedComponent implements OnInit {
|
export class LoanLockedComponent implements OnInit {
|
||||||
|
|
||||||
/** Loans Data */
|
/** Loans Data */
|
||||||
loans: any[];
|
loans: any[] = [];
|
||||||
/** Batch Requests */
|
/** Batch Requests */
|
||||||
batchRequests: any[];
|
batchRequests: any[];
|
||||||
/** Datasource for loans disbursal table */
|
/** Datasource for loans disbursal table */
|
||||||
@@ -71,6 +71,7 @@ export class LoanLockedComponent implements OnInit {
|
|||||||
getLoansLocked(page: number) {
|
getLoansLocked(page: number) {
|
||||||
this.tasksService.getAllLoansLocked(page, this.pageSize).subscribe((data: any) => {
|
this.tasksService.getAllLoansLocked(page, this.pageSize).subscribe((data: any) => {
|
||||||
this.loans = data.content;
|
this.loans = data.content;
|
||||||
|
this.dataSource = new MatTableDataSource(this.loans);
|
||||||
this.allowRunInlineJob = false;
|
this.allowRunInlineJob = false;
|
||||||
this.selection = new SelectionModel(true, []);
|
this.selection = new SelectionModel(true, []);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user