update select
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
import {
|
||||
flexRender,
|
||||
getCoreRowModel,
|
||||
getSortedRowModel,
|
||||
useReactTable,
|
||||
type ColumnDef,
|
||||
type ColumnSort,
|
||||
@@ -89,6 +88,8 @@ export function DataTable<TData, TValue>({
|
||||
})
|
||||
}
|
||||
|
||||
// table.getSelectedRowModel().flatRows.map((row) => row.original)
|
||||
|
||||
const table = useReactTable({
|
||||
data,
|
||||
columns,
|
||||
@@ -105,6 +106,7 @@ export function DataTable<TData, TValue>({
|
||||
manualSorting: true,
|
||||
manualPagination: true,
|
||||
enableRowSelection: true,
|
||||
getRowId: (row: any) => row.id,
|
||||
getCoreRowModel: getCoreRowModel(),
|
||||
onRowSelectionChange: setRowSelection,
|
||||
onSortingChange: setSorting,
|
||||
|
||||
Reference in New Issue
Block a user