From 2b3bb362ba22c1e4ed0e57650c5bfce81e01a49e Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 20 Jul 2024 13:49:58 +0000 Subject: [PATCH] ci: apply automated fixes --- .../src/features/column-resizing/ColumnResizing.utils.ts | 4 ++-- .../src/features/row-selection/RowSelection.utils.ts | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/table-core/src/features/column-resizing/ColumnResizing.utils.ts b/packages/table-core/src/features/column-resizing/ColumnResizing.utils.ts index 9fca37d27e..c865635768 100644 --- a/packages/table-core/src/features/column-resizing/ColumnResizing.utils.ts +++ b/packages/table-core/src/features/column-resizing/ColumnResizing.utils.ts @@ -23,7 +23,7 @@ export function column_getCanResize< TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData, ->( column: Column, table: Table,) { +>(column: Column, table: Table) { return ( (column.columnDef.enableResizing ?? true) && (table.options.enableColumnResizing ?? true) @@ -34,7 +34,7 @@ export function column_getIsResizing< TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData, ->(column: Column, table: Table, ) { +>(column: Column, table: Table) { return table.getState().columnSizingInfo.isResizingColumn === column.id } 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 aa966fbe53..8b36e6957f 100644 --- a/packages/table-core/src/features/row-selection/RowSelection.utils.ts +++ b/packages/table-core/src/features/row-selection/RowSelection.utils.ts @@ -127,12 +127,10 @@ export function table_getFilteredSelectedRowModel< export function table_getGroupedSelectedRowModel< TFeatures extends TableFeatures, TData extends RowData, ->( - table: Table, -) { +>(table: Table) { const { rowSelection } = table.getState() const rowModel = table_getCoreRowModel(table) - + if (!Object.keys(rowSelection).length) { return { rows: [],