@measurequick/measurequick-report-generator 1.2.3 → 1.2.4

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.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -47,13 +47,13 @@ export async function getReport(payload) { console.log("Photos Report"); console
47
47
  else if (photo.includes("image/png")) image = await doc.embedPng(util._base64ToArrayBuffer(photo));
48
48
  if (image) form.getButton(`photo${size}${j}`).setImage(image);
49
49
  let firstPhoto = (lastTag != currentTag);
50
+ lastTag = currentTag;
50
51
  let notes = payload.photos[keys[k]][sections[sectionNum]].name;
51
52
  if (payload.photos[keys[k]][sections[sectionNum]].hasNotes && firstPhoto) notes += ": " + payload.photos[keys[k]][sections[sectionNum]].notes;
52
53
  form.getTextField(`Notes${j}`).setText(`${notes}`);
53
54
  }
54
55
  }
55
56
  }
56
- lastTag = currentTag;
57
57
  }
58
58
  }
59
59
  forms.forEach(form => { form.flatten() });