Skip to content

Commit

Permalink
fix: make sure rowNode exists before trying to loop on it (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding authored Oct 24, 2023
1 parent 3987789 commit bebec5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/slick.grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3975,6 +3975,10 @@ export class SlickGrid<TData = any, C extends Column<TData> = Column<TData>, O e
});
}
}

if (!cacheEntry.rowNode) {
cacheEntry.rowNode = [];
}
this.postProcessedCleanupQueue.push({
actionType: 'R',
groupId: this.postProcessgroupId,
Expand All @@ -3996,7 +4000,7 @@ export class SlickGrid<TData = any, C extends Column<TData> = Column<TData>, O e

protected removeRowFromCache(row: number) {
const cacheEntry = this.rowsCache[row];
if (!cacheEntry) {
if (!cacheEntry || !cacheEntry.rowNode) {
return;
}

Expand Down

0 comments on commit bebec5f

Please sign in to comment.