diff --git a/app/react/components/datatables/Datatable.tsx b/app/react/components/datatables/Datatable.tsx index 0d99fd54f..6f34c886f 100644 --- a/app/react/components/datatables/Datatable.tsx +++ b/app/react/components/datatables/Datatable.tsx @@ -3,6 +3,7 @@ import { TableState, useReactTable, Row, + Column, getCoreRowModel, getPaginationRowModel, getFilteredRowModel, @@ -130,6 +131,7 @@ export function Datatable< getFacetedMinMaxValues: getFacetedMinMaxValues(), getExpandedRowModel: getExpandedRowModel(), getRowCanExpand, + getColumnCanGlobalFilter, ...(isServerSidePagination ? { manualPagination: true, pageCount } : {}), meta, }); @@ -258,3 +260,10 @@ function globalFilterFn( return false; } + +function getColumnCanGlobalFilter(column: Column): boolean { + if (column.id === 'select') { + return false; + } + return true; +}