Cannot read property 'total' of undefined
See original GitHub issueI have a problem. Angular 5 `
// component tpl <ngx-datatable [rows]=“rows” [columns]=“columns”
</ngx-datatable>// component rows = [ { name: ‘Austin’, gender: ‘Male’, company: ‘Swimlane’ }, { name: ‘Dany’, gender: ‘Male’, company: ‘KFC’ }, { name: ‘Molly’, gender: ‘Female’, company: ‘Burger King’ }, ]
columns = [ { prop: ‘name’ }, { name: ‘Gender’ }, { name: ‘Company’ } ]
` DataTableBodyComponent.html:15 ERROR TypeError: Cannot read property ‘total’ of undefined at Object.eval [as updateDirectives] (DataTableBodyComponent.html:20) at Object.debugUpdateDirectives [as updateDirectives] (core.js:14339) at checkAndUpdateView (core.js:13508) at callViewAction (core.js:13858) at execEmbeddedViewsAction (core.js:13816) at checkAndUpdateView (core.js:13509) at callWithDebugContext (core.js:14740) at Object.debugCheckAndUpdateView [as checkAndUpdateView] (core.js:14277) at ViewRef_.detectChanges (core.js:11300) at DataTableBodyComponent…/src/components/body/body.component.ts.DataTableBodyComponent.updateRows (index.js:3443)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:7 (4 by maintainers)
Top GitHub Comments
reverting to
11.0.4
apparently solves the issue for meSame. The exact line of error is:
var currVal_5 = _co.columnGroupWidths.total;
in the component DataTableBodyComponent.ngfactory.js