Default processed data to prevent count calling length on null
This commit is contained in:
parent
bbe41ef0b5
commit
5f5abe7fc2
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ztimson/ng-datatable",
|
"name": "@ztimson/ng-datatable",
|
||||||
"version": "1.6.3",
|
"version": "1.6.4",
|
||||||
"homepage": "https://github.com/ztimson/ng-datatable",
|
"homepage": "https://github.com/ztimson/ng-datatable",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"author": {
|
"author": {
|
||||||
|
@ -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
|
filters: ((el?: any, i?: number, arr?: any[]) => boolean)[] = []; // Array of process functions to apply to data
|
||||||
pages: number[] = []; // Array of possible pages
|
pages: number[] = []; // Array of possible pages
|
||||||
pagedData: any[] = []; // The data for the current
|
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
|
selectedRows = new Set<number>(); // Keep track of selected rows
|
||||||
sortedColumn: number; // Column currently being sorted
|
sortedColumn: number; // Column currently being sorted
|
||||||
sortedDesc = false; // Is the sorted column being sorted in ascending or descending order
|
sortedDesc = false; // Is the sorted column being sorted in ascending or descending order
|
||||||
|
Loading…
Reference in New Issue
Block a user