diff --git a/src/leaseStatisticReport/requests.ts b/src/leaseStatisticReport/requests.ts index de73f1fc5..7acfe8028 100644 --- a/src/leaseStatisticReport/requests.ts +++ b/src/leaseStatisticReport/requests.ts @@ -23,10 +23,11 @@ export const fetchReportData = (payload: Record): Generator): Generator => { - return callApi(new Request(`${payload.url}?${payload.query}`)); + const parsedQuery = parseServiceUnitQuery(payload.query) || ''; + return callApi(new Request(`${payload.url}?${parsedQuery}`)); }; export const fetchOptions = (payload: any): Generator => { return callApi(new Request(payload, { method: 'OPTIONS' })); -}; \ No newline at end of file +};