@measurequick/measurequick-report-generator 1.5.71 → 1.5.72

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measurequick/measurequick-report-generator",
3
- "version": "1.5.71",
3
+ "version": "1.5.72",
4
4
  "description": "Generates PDF documents for various measureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -184,10 +184,8 @@ export async function getReport(payload) {
184
184
  /************* DUCT SCREENING SHEET ***********/
185
185
  try {
186
186
  if (payload.project.duct_screening && payload.project.duct_screening.length > 0) {
187
- let ductPayload = {
188
- test: payload.project.duct_screening[payload.project.duct_screening.length - 1]
189
- };
190
-
187
+ let ductPayload = payload;
188
+ ductPayload.test = payload.project.duct_screening[payload.project.duct_screening.length-1];
191
189
  let nciReport = await nciReport.getReport(ductPayload);
192
190
 
193
191
  // Ensure that nciReport is defined and has the expected structure