fix pagination bug
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
hamid zarghami
2026-07-22 16:11:27 +03:30
parent 76a68adc1c
commit b5b8344888
2 changed files with 13 additions and 9 deletions
+3 -1
View File
@@ -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);
};