Skip to content

Commit

Permalink
no row models if manual
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinVandy committed Mar 13, 2024
1 parent ce98410 commit 8de777f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions packages/material-react-table/src/hooks/useMRT_TableOptions.ts
Expand Up @@ -228,14 +228,18 @@ export const useMRT_TableOptions: <TData extends MRT_RowData>(
? getFacetedUniqueValues()
: undefined,
getFilteredRowModel:
enableColumnFilters || enableGlobalFilter || enableFilters
(enableColumnFilters || enableGlobalFilter || enableFilters) &&
!manualFiltering
? getFilteredRowModel()
: undefined,
getGroupedRowModel: enableGrouping ? getGroupedRowModel() : undefined,
getPaginationRowModel: enablePagination
? getPaginationRowModel()
: undefined,
getSortedRowModel: enableSorting ? getSortedRowModel() : undefined,
getGroupedRowModel:
enableGrouping && !manualGrouping ? getGroupedRowModel() : undefined,
getPaginationRowModel:
enablePagination && !manualPagination
? getPaginationRowModel()
: undefined,
getSortedRowModel:
enableSorting && !manualSorting ? getSortedRowModel() : undefined,
getSubRows: (row) => row?.subRows,
icons,
layoutMode,
Expand Down

0 comments on commit 8de777f

Please sign in to comment.