Skip to content

Commit

Permalink
Merge pull request #4056 from terrestris/fix-ag-feature-grid-columnDefs
Browse files Browse the repository at this point in the history
fix: correct variable name for column definitions in checkbox selecti…
  • Loading branch information
mholthausen authored Oct 14, 2024
2 parents 6a9080f + 2c9f5ec commit 90c5055
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 90c5055

Please sign in to comment.