Skip to content

Commit

Permalink
Remove unitId problem from dahsboard
Browse files Browse the repository at this point in the history
  • Loading branch information
AdJez committed Jan 28, 2025
1 parent 114aa39 commit 963f95c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/frontend/js/data/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,9 @@ export const useReferralLitesV2 = (
normalizedParams[snakeCase(key)].push(value);
});

unitId && params.set('unit_id', unitId);
if (unitId) {
normalizedParams['unit_id'] = [unitId];
}

return useQuery(
[`referrallites/${url}`, normalizedParams as FetchListQueryParams],
Expand Down

0 comments on commit 963f95c

Please sign in to comment.