Skip to content

Commit

Permalink
ci: apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Oct 22, 2024
1 parent 889bfeb commit ba5e032
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/react/sorting/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,6 @@ if (!rootElement) throw new Error('Failed to find the root element')

ReactDOM.createRoot(rootElement).render(
// <React.StrictMode>
<App />
<App />,
// </React.StrictMode>,
)
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ export function table_resetGrouping<
)
}



export function row_getIsGrouped<
TFeatures extends TableFeatures,
TData extends RowData,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export const GlobalFiltering: TableFeature = {
onGlobalFilterChange: makeStateUpdater('globalFilter', table),
globalFilterFn: 'auto',
getColumnCanGlobalFilter: (column) => {
const value = table.getCoreRowModel()
const value = table
.getCoreRowModel()
.flatRows[0]?.getAllCellsByColumnId()
[column.id]?.getValue()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ export function table_getIsAllPageRowsSelected<
TFeatures extends TableFeatures,
TData extends RowData,
>(table: Table_Internal<TFeatures, TData>) {
const paginationFlatRows = table.getPaginatedRowModel().flatRows.filter(
(row) => row_getCanSelect(row, table),
)
const paginationFlatRows = table
.getPaginatedRowModel()
.flatRows.filter((row) => row_getCanSelect(row, table))
const rowSelection = table_getState(table).rowSelection ?? {}

let isAllPageRowsSelected = !!paginationFlatRows.length
Expand Down

0 comments on commit ba5e032

Please sign in to comment.