Skip to content

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

Open
@alexmoraru25

Description

@alexmoraru25

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions