Skip to content

Commit

Permalink
fix: correct variable name for column definitions in checkbox selecti…
Browse files Browse the repository at this point in the history
…on check
  • Loading branch information
mholthausen committed Oct 14, 2024
1 parent 6a9080f commit 2c9f5ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Grid/AgFeatureGrid/AgFeatureGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,10 @@ export function AgFeatureGrid<T>({
return columnDefs;
}
// check for checkbox column - if not present => add
const checkboxSelectionPresent = colDefs?.
some((colDef: ColDef<WithKey<T>>) => _has(colDef, 'checkboxSelection') && !_isNil(colDef.checkboxSelection));
const checkboxSelectionPresent = columnDefs?.
some((colDef: ColDef<WithKey<T>>) =>
_has(colDef, 'checkboxSelection') && !_isNil(colDef.checkboxSelection)
);
if (checkboxSelectionPresent) {
return columnDefs;
}
Expand Down

0 comments on commit 2c9f5ec

Please sign in to comment.