Skip to content

Commit

Permalink
fix: make sure dataset is array before getting his length
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed May 25, 2021
1 parent 3319ead commit 702d9fd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -180,7 +180,7 @@ export class SlickVanillaGridBundle {
}

this.refreshGridData(data || []);
this._currentDatasetLength = newDataset.length;
this._currentDatasetLength = (newDataset || []).length;

// expand/autofit columns on first page load
// we can assume that if the prevDataset was empty then we are on first load
Expand Down

0 comments on commit 702d9fd

Please sign in to comment.