fix query search
This commit is contained in:
@@ -121,7 +121,7 @@ export default function TanstakUsersTable() {
|
||||
isError,
|
||||
isFetching,
|
||||
error
|
||||
} = useUsersData(pagination.pageIndex, pagination.pageSize, getSortParams?.sortBy, getSortParams?.sortDirection);
|
||||
} = useUsersData(pagination.pageIndex, pagination.pageSize, getSortParams?.sortBy, getSortParams?.sortDirection, searchQuery);
|
||||
|
||||
const queryClient = useQueryClient();
|
||||
|
||||
@@ -471,16 +471,9 @@ export default function TanstakUsersTable() {
|
||||
setSorting(newSorting);
|
||||
setPagination(prev => ({ ...prev, pageIndex: 0 }));
|
||||
},
|
||||
onColumnFiltersChange: setColumnFilters,
|
||||
getCoreRowModel: getCoreRowModel(),
|
||||
getSortedRowModel: getSortedRowModel(),
|
||||
getPaginationRowModel: getPaginationRowModel(),
|
||||
getFilteredRowModel: getFilteredRowModel(),
|
||||
initialState: {
|
||||
pagination: {
|
||||
pageSize: 10,
|
||||
},
|
||||
},
|
||||
getPaginationRowModel: getPaginationRowModel()
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user