mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-29 18:13:47 +00:00
fix: reduce campaigns fetch limit to 100 (backend max)
Backend validates limit with le=100, sending 200 caused 422 error.
This commit is contained in:
@@ -21,7 +21,7 @@ export default function AdminPartnerCampaignAssign() {
|
|||||||
// Fetch all campaigns
|
// Fetch all campaigns
|
||||||
const { data: campaignsData, isLoading } = useQuery({
|
const { data: campaignsData, isLoading } = useQuery({
|
||||||
queryKey: ['admin-campaigns-all'],
|
queryKey: ['admin-campaigns-all'],
|
||||||
queryFn: () => campaignsApi.getCampaigns(true, 0, 200),
|
queryFn: () => campaignsApi.getCampaigns(true, 0, 100),
|
||||||
});
|
});
|
||||||
|
|
||||||
const assignMutation = useMutation({
|
const assignMutation = useMutation({
|
||||||
|
|||||||
Reference in New Issue
Block a user