This commit is contained in:
@@ -19,7 +19,9 @@ const CustomerList: FC = () => {
|
||||
const getCustomers = useGetCustomers(page, limit, false, search);
|
||||
|
||||
const handleSearch = (value: string) => {
|
||||
setPage(1);
|
||||
if (value !== search) {
|
||||
setPage(1);
|
||||
}
|
||||
setSearch(value);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user