core.js:6014 ERROR TypeError: Cannot read property 'ordering' of null

core.js:6014 ERROR TypeError: Cannot read property 'ordering' of null

manjeet85manjeet85 Posts: 1Questions: 1Answers: 0
edited December 2020 in Free community support

facing issues in angular project when response of service is blank

{recordsFiltered: 0, data: [], draw: 0, recordsTotal: 0}
data: []
draw: 0
recordsFiltered: 0
recordsTotal: 0

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    edited December 2020

    It's working here as expected, using Mockjax to respond to the Ajax request. One issue may be your draw is at 0, this should be the same the number in the request - with the first being 1 - so 0 is suspicious.

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.