@measurequick/measurequick-report-generator 1.2.119 → 1.2.121

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.119",
3
+ "version": "1.2.121",
4
4
  "description": "Generates PDF documents for various MeasureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -103,11 +103,9 @@ export async function getReport(payload) {
103
103
  const [_correctiveMeasuresDoc] = correctiveMeasuresDoc ? await coreDoc.copyPages(correctiveMeasuresDoc, [0]) : false;
104
104
  if (correctiveMeasuresDoc.getPages().length > 1) {
105
105
  const [_correctiveMeasuresDocPage2] = correctiveMeasuresDoc ? await coreDoc.copyPages(correctiveMeasuresDoc, [1]) : false;
106
- console.log(_correctiveMeasuresDocPage2);
107
- if (_correctiveMeasuresDoc && _correctiveMeasuresDocPage2) _correctiveMeasuresDoc = [_correctiveMeasuresDoc, _correctiveMeasuresDocPage2];
108
- console.log(_correctiveMeasuresDoc);
109
- }
110
- if (_correctiveMeasuresDoc) coreDoc.insertPage(coreDoc.getPages().length, _correctiveMeasuresDoc);
106
+ if (_correctiveMeasuresDoc) coreDoc.insertPage(coreDoc.getPages().length, _correctiveMeasuresDoc);
107
+ if (_correctiveMeasuresDocPage2) coreDoc.insertPage(coreDoc.getPages().length, _correctiveMeasuresDocPage2);
108
+ } else if (_correctiveMeasuresDoc) coreDoc.insertPage(coreDoc.getPages().length, _correctiveMeasuresDoc);
111
109
  } catch (e) { console.log(e) }
112
110
 
113
111
  /******** PHOTOS (X PAGES) *********/