From 2c9f5ec247f3e732872351be9741bc47a31ab8ee Mon Sep 17 00:00:00 2001 From: Michael Holthausen Date: Mon, 14 Oct 2024 11:44:29 +0200 Subject: [PATCH] fix: correct variable name for column definitions in checkbox selection check --- src/Grid/AgFeatureGrid/AgFeatureGrid.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Grid/AgFeatureGrid/AgFeatureGrid.tsx b/src/Grid/AgFeatureGrid/AgFeatureGrid.tsx index 52ffda2d7..68c980406 100644 --- a/src/Grid/AgFeatureGrid/AgFeatureGrid.tsx +++ b/src/Grid/AgFeatureGrid/AgFeatureGrid.tsx @@ -572,8 +572,10 @@ export function AgFeatureGrid({ return columnDefs; } // check for checkbox column - if not present => add - const checkboxSelectionPresent = colDefs?. - some((colDef: ColDef>) => _has(colDef, 'checkboxSelection') && !_isNil(colDef.checkboxSelection)); + const checkboxSelectionPresent = columnDefs?. + some((colDef: ColDef>) => + _has(colDef, 'checkboxSelection') && !_isNil(colDef.checkboxSelection) + ); if (checkboxSelectionPresent) { return columnDefs; }