Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of undefined (reading 'length') #1458

Open
alexmoraru25 opened this issue Jul 4, 2024 · 4 comments
Open

Cannot read properties of undefined (reading 'length') #1458

alexmoraru25 opened this issue Jul 4, 2024 · 4 comments

Comments

@alexmoraru25
Copy link

Describe the bug
For some grid instances either when loading the data or moving to the next page I get one of these errors:

  • Cannot read properties of undefined (reading 'length')
  • Cannot read properties of undefined (reading 'rows')

The data is there, loaded but the Previous/Next buttons are disabled and at the very bottom I get another message:
An error happened while fetching the data

image

What is more interesting is that sometime it works perfectly, but most of the time not.

Additional context
I am using the gridjs-angular component.
I have multiple gridjs-angular components in the same page.

I have tried the following:

  • loading the static data and also using a Promise/timeout
  • assigning column (and data) ids
  • disabling the search feature seems to work (???) but we need it
@joeworkman
Copy link

I have this same issue. Were you able to find the root cause?

@joeworkman
Copy link

joeworkman commented Jul 24, 2024

The expection is getting thrown inside of this for loop... inside pipline.ts

CleanShot 2024-07-24 at 10 26 10@2x

@joeworkman
Copy link

joeworkman commented Jul 24, 2024

This occurs when prev is undefined when running await processor.process(prev). I sort of get lost in the weeds after that since I am not familiar enough with the code.

It looks as if the processor is for the pagination in my instance. This makes sense since my table gets built but the pagination is broken.

@OussamaKhoubran
Copy link

Any updates about this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants