added debounce to - + buttons
This commit is contained in:
1 parent
f867896817
commit
4fe0fb3d4e
52 files changed
+2548
-2253
No files matched your search
@@ -101,7 +101,7 @@ export function useCollectionHasProducts(
|
||||
queryFn: async () => {
|
||||
const response = await apiClient.get<PaginatedResponse<Product>>(
|
||||
`/collections/${collectionId}/products`,
|
||||
{ params: { perPage: 1 } }
|
||||
{ params: { perPage: 20 } }
|
||||
);
|
||||
return {
|
||||
hasProducts: response.data.data && response.data.data.length > 0,
|
||||
|
||||
Reference in new issue
Block a user