From 6be90601425e332a0a17c032a63529fa52c5ccc8 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sun, 29 Sep 2024 19:04:49 +0000 Subject: [PATCH] ci: apply automated fixes --- .../global-filtering/GlobalFiltering.utils.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/packages/table-core/src/features/global-filtering/GlobalFiltering.utils.ts b/packages/table-core/src/features/global-filtering/GlobalFiltering.utils.ts index b03b3afe71..03e3650d6a 100644 --- a/packages/table-core/src/features/global-filtering/GlobalFiltering.utils.ts +++ b/packages/table-core/src/features/global-filtering/GlobalFiltering.utils.ts @@ -51,7 +51,7 @@ export function table_getGlobalFilterFn< TFeatures extends TableFeatures, TData extends RowData, >( - table: Table_Internal + table: Table_Internal, ): FilterFn | FilterFn | undefined { const { globalFilterFn: globalFilterFn } = table.options @@ -71,10 +71,7 @@ export function table_getGlobalFilterFn< export function table_setGlobalFilter< TFeatures extends TableFeatures, TData extends RowData, ->( - table: Table_Internal, - updater: any, -) { +>(table: Table_Internal, updater: any) { table.options.onGlobalFilterChange?.(updater) } @@ -86,10 +83,7 @@ export function table_setGlobalFilter< export function table_resetGlobalFilter< TFeatures extends TableFeatures, TData extends RowData, ->( - table: Table_Internal, - defaultState?: boolean, -) { +>(table: Table_Internal, defaultState?: boolean) { table_setGlobalFilter( table, defaultState ? undefined : table_getInitialState(table).globalFilter,