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

TreeTable Pagination Error #685

Closed
Abhishek-Shrotriya opened this issue Dec 18, 2018 · 1 comment
Closed

TreeTable Pagination Error #685

Abhishek-Shrotriya opened this issue Dec 18, 2018 · 1 comment
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@Abhishek-Shrotriya
Copy link

Abhishek-Shrotriya commented Dec 18, 2018

I am submitting a
[x] bug report
[ ] feature request
[ ] support request

I am facing an issue related to the page feature of TreeTable in PrimeReact Version 2.0.1
If the total number of rows to be displayed in TreeTable is completely divisible by page size i.e. rows={..} property then page feature is working fine, however if its not completely divisible its throwing below error:- Uncaught TypeError: Cannot read property 'key' of undefined.
STEPS TO REPRODUCE
If the total number of rows to be displayed in TreeTable are 4 and the pageSize value is 3 i.e. rows={3} then on clicking on the 2 page link, it's throwing the above mentioned error. However, working fine if I change the pageSize property i.e. rows={2} as it is completely dividing the total number of rows i.e. 4

PlunkerLink: https://plnkr.co/edit/6FLs8c6zELzWsFHX2i3X?p=preview

Please advise as I am planning to use this component for one of my projects.

React version: 16
PrimeReact version: 2.0.1
Browser: Chrome 71.0.3578.98 (Official Build) (64-bit)
Language: ES6/7

@cagataycivici cagataycivici self-assigned this Dec 23, 2018
@cagataycivici cagataycivici added the Type: Bug Issue contains a defect related to a specific component. label Dec 23, 2018
@cagataycivici cagataycivici added this to the 3.0.0-rc1 milestone Dec 23, 2018
@cagataycivici cagataycivici changed the title TreeTable: Error in page feature TreeTable Pagination Error Dec 24, 2018
@cagataycivici
Copy link
Member

Fixed for 3.0.0-beta.1 which will be released later today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants