We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa7da1a commit 17214a7Copy full SHA for 17214a7
slick.grid.js
@@ -1799,7 +1799,7 @@ if (typeof Slick === "undefined") {
1799
hasFrozenRows = true;
1800
frozenRowsHeight = ( options.frozenRow ) * options.rowHeight;
1801
1802
- var dataLength = getDataLength() || this.data.length;
+ var dataLength = getDataLength();
1803
1804
actualFrozenRow = ( options.frozenBottom )
1805
? ( dataLength - options.frozenRow )
@@ -2380,7 +2380,7 @@ if (typeof Slick === "undefined") {
2380
if (data.getLength) {
2381
return data.getLength();
2382
} else {
2383
- return data.length;
+ return data && data.length || 0;
2384
}
2385
2386
0 commit comments