Need a special offer?Find out if your project fits.
+

Cannot read properties of undefined (reading 'index')

Resolved
Accobat Development 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

7 answers

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

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster June 14, 2022

Hello, Jimmy,

We are pleased to inform you that the exception when there’re only columns in slice and showEmptyValues: true was fixed.

This fix is available in 2.9.27 version of Flexmonster: https://www.flexmonster.com/release-notes/version-2-9-27/ 

You are welcome to update the component: https://www.flexmonster.com/doc/updating-to-the-latest-version/ 

Please let us know if any questions arise.

Kind regards,
Nadia

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster June 21, 2022

Hello, Jimmy,

Hope you are doing well.

We were wondering if you had a chance to test the updated version.

Looking forward to hearing your feedback.

Kind regards,
Nadia

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster June 28, 2022

Hello, Jimmy,

Hope you are doing well.

Just checking in to ask if you had a chance to check the fix. Could you please confirm if it works well for you?

Looking forward to hearing from you.

Kind regards,
Nadia

Public
Accobat Development June 30, 2022

Hello Nadia,
 
I have been on vacation and will test to day or tomorrow.
 
/Jimmy

Public
Accobat Development July 4, 2022

Hello, 
 
I can confirm that it works.
 
/Jimmy

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster July 4, 2022

Hi, Jimmy,

Thank you for the feedback.

We are glad to hear that the fix works for you!

As always, feel free to contact us if other questions arise.

Kind regards,
Nadia

Please login or Register to Submit Answer