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

DataTable has null state under certain conditions #1003

Closed
SebastianMila opened this issue Aug 29, 2019 · 0 comments
Closed

DataTable has null state under certain conditions #1003

SebastianMila opened this issue Aug 29, 2019 · 0 comments
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@SebastianMila
Copy link

SebastianMila commented Aug 29, 2019

There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours

I'm submitting a ... (check one with "x")

[ X] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Codesandbox Case (Bug Reports)
https://codesandbox.io/embed/primereact-test-5nlv3

Current behavior
DataTable with onPage, onSort, onFilter and reorderable columns has null state when there's no state in current session storage.
DataTable.js:1418 Uncaught TypeError: Cannot read property 'columnOrder' of null
at DataTable.getColumns (DataTable.js:1418)
at DataTable.render (DataTable.js:1546)

Expected behavior
Successful DataTable rendering.

Minimal reproduction of the problem with instructions
Create DataTable with onPage, onSort, onFilter methods and reorderable columns (lazy loading with sort and filter features).

Please tell us about your environment:
Fedora 30, IntelliJ Ultimate 2019.2, NPM 6.9.0

  • React version:
    16.8.6

  • PrimeReact version:
    3.1.9

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Chrome, Firefox

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
    ES6
@SebastianMila SebastianMila changed the title Stateful DataTable has null state under certain conditions DataTable has null state under certain conditions Aug 29, 2019
@mertsincan mertsincan self-assigned this Sep 9, 2019
@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label Sep 9, 2019
@mertsincan mertsincan added this to the 3.2.0 milestone Sep 9, 2019
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