Skip to content

Commit b47ae36

Browse files
committed
🔥 Remove unused table column visibility
1 parent 6cce57e commit b47ae36

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎frontend/src/components/Common/DataTable.tsx‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {
22
type ColumnDef,
3-
columnVisibilityFeature,
43
createPaginatedRowModel,
54
flexRender,
65
type RowData,
@@ -33,7 +32,6 @@ import {
3332
} from "@/components/ui/table"
3433

3534
const dataTableFeatures = tableFeatures({
36-
columnVisibilityFeature,
3735
rowPaginationFeature,
3836
paginatedRowModel: createPaginatedRowModel(),
3937
})
@@ -80,7 +78,7 @@ export function DataTable<TData extends RowData>({
8078
{table.getRowModel().rows.length ? (
8179
table.getRowModel().rows.map((row) => (
8280
<TableRow key={row.id}>
83-
{row.getVisibleCells().map((cell) => (
81+
{row.getAllCells().map((cell) => (
8482
<TableCell key={cell.id}>
8583
{flexRender(cell.column.columnDef.cell, cell.getContext())}
8684
</TableCell>

0 commit comments

Comments
 (0)