diff --git a/packages/ibm-products/src/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js b/packages/ibm-products/src/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js
index 0088b2d657..eaf5ba4f0e 100644
--- a/packages/ibm-products/src/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js
+++ b/packages/ibm-products/src/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js
@@ -47,6 +47,7 @@ const Columns = ({
[columns, setColumnsObject]
);
+ const filteredStickyColumn = columns?.filter((item) => !item.sticky);
return (
{
onSelectColumn(
- columns,
+ filteredStickyColumn,
getVisibleColumnsCount() !== columns.length
);
}}
diff --git a/packages/ibm-products/src/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js b/packages/ibm-products/src/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js
index 3c7da9f03c..7539f8aeef 100644
--- a/packages/ibm-products/src/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js
+++ b/packages/ibm-products/src/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js
@@ -69,7 +69,7 @@ const CustomizeColumnsTearsheet = ({
const onCheckboxCheck = (col, value) => {
const changedDefinitions = columnObjects.map((definition) => {
if (
- (Array.isArray(col) && col.indexOf(definition) != null) ||
+ (Array.isArray(col) && col.indexOf(definition) != -1) ||
definition.id === col.id
) {
return { ...definition, isVisible: value };