From ba5e03215f75ed25b7398292347de11310ae9bf3 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 22 Oct 2024 00:40:45 +0000 Subject: [PATCH] ci: apply automated fixes --- examples/react/sorting/src/main.tsx | 2 +- .../src/features/column-grouping/ColumnGrouping.utils.ts | 2 -- .../src/features/global-filtering/GlobalFiltering.ts | 3 ++- .../src/features/row-selection/RowSelection.utils.ts | 6 +++--- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/examples/react/sorting/src/main.tsx b/examples/react/sorting/src/main.tsx index 7018a249fe..2d62534739 100644 --- a/examples/react/sorting/src/main.tsx +++ b/examples/react/sorting/src/main.tsx @@ -198,6 +198,6 @@ if (!rootElement) throw new Error('Failed to find the root element') ReactDOM.createRoot(rootElement).render( // - + , // , ) diff --git a/packages/table-core/src/features/column-grouping/ColumnGrouping.utils.ts b/packages/table-core/src/features/column-grouping/ColumnGrouping.utils.ts index e0f3ab625f..5a577825e6 100644 --- a/packages/table-core/src/features/column-grouping/ColumnGrouping.utils.ts +++ b/packages/table-core/src/features/column-grouping/ColumnGrouping.utils.ts @@ -166,8 +166,6 @@ export function table_resetGrouping< ) } - - export function row_getIsGrouped< TFeatures extends TableFeatures, TData extends RowData, diff --git a/packages/table-core/src/features/global-filtering/GlobalFiltering.ts b/packages/table-core/src/features/global-filtering/GlobalFiltering.ts index 916de57555..2baef48ef8 100644 --- a/packages/table-core/src/features/global-filtering/GlobalFiltering.ts +++ b/packages/table-core/src/features/global-filtering/GlobalFiltering.ts @@ -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() diff --git a/packages/table-core/src/features/row-selection/RowSelection.utils.ts b/packages/table-core/src/features/row-selection/RowSelection.utils.ts index c0797dba2a..514c605f68 100644 --- a/packages/table-core/src/features/row-selection/RowSelection.utils.ts +++ b/packages/table-core/src/features/row-selection/RowSelection.utils.ts @@ -225,9 +225,9 @@ export function table_getIsAllPageRowsSelected< TFeatures extends TableFeatures, TData extends RowData, >(table: Table_Internal) { - 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