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 Sep 29, 2024
1 parent 199fffc commit 6be9060
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function table_getGlobalFilterFn<
TFeatures extends TableFeatures,
TData extends RowData,
>(
table: Table_Internal<TFeatures, TData>
table: Table_Internal<TFeatures, TData>,
): FilterFn<TFeatures, TData> | FilterFn<TFeatures, TData> | undefined {
const { globalFilterFn: globalFilterFn } = table.options

Expand All @@ -71,10 +71,7 @@ export function table_getGlobalFilterFn<
export function table_setGlobalFilter<
TFeatures extends TableFeatures,
TData extends RowData,
>(
table: Table_Internal<TFeatures, TData>,
updater: any,
) {
>(table: Table_Internal<TFeatures, TData>, updater: any) {
table.options.onGlobalFilterChange?.(updater)
}

Expand All @@ -86,10 +83,7 @@ export function table_setGlobalFilter<
export function table_resetGlobalFilter<
TFeatures extends TableFeatures,
TData extends RowData,
>(
table: Table_Internal<TFeatures, TData>,
defaultState?: boolean,
) {
>(table: Table_Internal<TFeatures, TData>, defaultState?: boolean) {
table_setGlobalFilter(
table,
defaultState ? undefined : table_getInitialState(table).globalFilter,
Expand Down

0 comments on commit 6be9060

Please sign in to comment.