Get Free Trial

Cannot read properties of undefined (reading 'index')

Answered
Jimmy asked on May 11, 2022

When only having columns in the grid I’m getting the following script error:

flexmonster.full.js:1762 Uncaught TypeError: Cannot read properties of undefined (reading 'index')
at f.xra (<anonymous>:42142:393)
at f.oza (<anonymous>:42139:244)
at f.getData (<anonymous>:42128:109)
at b.Xva.b.UC (<anonymous>:42120:225)
at b.getData (<anonymous>:42237:451)
at b.kg (<anonymous>:42304:107)
at b.mn (<anonymous>:42295:203)
at b.Oy (<anonymous>:42219:166)
at b.AG (<anonymous>:42233:393)
at b.lb (<anonymous>:42288:478)

 
jsfiddle: https://jsfiddle.net/08cutLps/ 
 
/Jimmy

1 answer

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster May 12, 2022

Hello,

Thank you for reporting the issue.

We will take a look at the described behavior and provide a fix with our minor release with the ETA June 13th.
However, please note that it is expected behavior that there’s no data on the grid if there are no measures in the slice. If a user sets a slice via UI and doesn’t add any values, the “Apply” button won’t be active. But if you define a slice in your code without measures, it will show an empty grid. 

We hope it helps. You are welcome to write to us in case further questions arise.

Kind regards,
Nadia

Please login or Register to Submit Answer