Topic: Using searchLocalDataByFields on table errors when a field has a null value

Rothenbaum pro asked 4 years ago


Expected behavior if table data includes null - should ignore during search methods

Actual behavior throws an error

Resources (screenshots, code snippets etc.) ManageReportComponent_Host.ngfactory.js? [sm]:1 ERROR TypeError: Cannot read property 'toLowerCase' of null at ng-uikit-pro-standard.js:8955 at Array.some () at ng-uikit-pro-standard.js:8949 at Array.filter () at MdbTableDirective.filterLocalDataByFields (ng-uikit-pro-standard.js:8944) at MdbTableDirective.searchLocalDataByFields (ng-uikit-pro-standard.js:8984) at ManageReportComponent._searchItems (manage-report.component.ts:296) at ManageReportComponent.oninput (manage-report.component.ts:76) at Object.eval [as handleEvent] (ManageReportComponent_Host.ngfactory.js? [sm]:1) at handleEvent (core.js:43993)


Bartosz Termena staff commented 4 years ago

Hi!

Thank you for reporting the problem, we will fix that as soon as possible.

Best Regards, Bartosz.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 8.5.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No