@ministryofjustice/hmpps-digital-prison-reporting-frontend 3.37.1 → 3.37.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -66,7 +66,7 @@ const initDataSources = ({ req, services, token, userId, }) => {
66
66
  }).toRecordWithFilterPrefix(true);
67
67
  const { tableId: childTableId } = requestedReport.childExecutionData.find((e) => e.variantId === childVariant.id);
68
68
  return services.reportingService
69
- .getAsyncReport(token, reportId, reportVariantId, childTableId, query)
69
+ .getAsyncReport(token, reportId, childVariant.id, childTableId, query)
70
70
  .then((data) => ({
71
71
  id: childVariant.id,
72
72
  data,
@@ -102,7 +102,7 @@ export const initDataSources = ({
102
102
  )
103
103
 
104
104
  return services.reportingService
105
- .getAsyncReport(token, reportId, reportVariantId, childTableId, query)
105
+ .getAsyncReport(token, reportId, childVariant.id, childTableId, query)
106
106
  .then((data: Array<Dict<string>>) => ({
107
107
  id: childVariant.id,
108
108
  data,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ministryofjustice/hmpps-digital-prison-reporting-frontend",
3
3
  "description": "The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.",
4
- "version": "3.37.1",
4
+ "version": "3.37.2",
5
5
  "main": "dpr/assets/js/all.mjs",
6
6
  "sass": "dpr/all.scss",
7
7
  "engines": {
package/package.zip CHANGED
Binary file