Default processed data to prevent count calling length on null

This commit is contained in:
Zakary Timson 2018-06-27 13:47:56 -04:00
parent bbe41ef0b5
commit 5f5abe7fc2
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@ztimson/ng-datatable",
"version": "1.6.3",
"version": "1.6.4",
"homepage": "https://github.com/ztimson/ng-datatable",
"license": "Apache-2.0",
"author": {

View File

@ -29,7 +29,7 @@ export class NgDatatableComponent implements OnInit {
filters: ((el?: any, i?: number, arr?: any[]) => boolean)[] = []; // Array of process functions to apply to data
pages: number[] = []; // Array of possible pages
pagedData: any[] = []; // The data for the current
processedData: any[]; // rows left after filtering
processedData: any[] = []; // rows left after filtering
selectedRows = new Set<number>(); // Keep track of selected rows
sortedColumn: number; // Column currently being sorted
sortedDesc = false; // Is the sorted column being sorted in ascending or descending order