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