Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cherniavskii committed Dec 2, 2024
1 parent 21113f1 commit cd4188f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ export const useGridRowPinningPreProcessors = (

if (prevPinnedRowsCache) {
const pinnedRowCleanup = (rowId: GridRowId) => {
if (newGroupingParams.tree[rowId].type === 'pinnedRow') {
const node = newGroupingParams.tree[rowId];
if (node?.type === 'pinnedRow') {
delete newGroupingParams.tree[rowId];
delete newGroupingParams.dataRowIdToModelLookup[rowId];
delete newGroupingParams.dataRowIdToIdLookup[rowId];
Expand Down

0 comments on commit cd4188f

Please sign in to comment.