Skip to content

Detail panel doesn't open when the rows are grouped #402

Closed
@davidanastasov

Description

@davidanastasov

#394 breaks the details panel once the rows are grouped by a column. I managed to track the problem down to the following line.

return result.data[current];
This bug only exists on the latest version (4.3.10), once I downgraded to 4.3.9, the bug was resolved.

Describe the bug
The bug occurs because the findDataByPath function returns undefined.
If you try to open the details panel while no grouping is active, the path array contains only one integer value, and the details panel opens normally.
If you group the rows by some column, the path array now contains two values, the first one being the group index, and the second one being the unique row id (uuid). The uuid is a string, and result.data["uuid"] returns undefined.
image

To Reproduce
CodeSandbox

  1. Group the rows by the column "Words"
  2. Expand the group "Paper"
  3. Try to open the details panel for one of the rows inside the "Paper" group
  4. The following error will get thrown in the console
    image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions