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

branch 2.0-frozenRowsAndColumns : this.data.length undefined #88

Open
hafizchin opened this issue Aug 11, 2016 · 0 comments
Open

branch 2.0-frozenRowsAndColumns : this.data.length undefined #88

hafizchin opened this issue Aug 11, 2016 · 0 comments

Comments

@hafizchin
Copy link

this.data in slick.grid.js function setFrozenOptions() can sometimes be null, so calling this.data.length will cause a javascript error.

probably you can update the code to avoid this scenario.

current : var dataLength = getDataLength() || this.data.length;
proposed: var dataLength = getDataLength() || (this.data || []).length;

by the way, thank you for adding this feature in slickgrid 👍

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

1 participant