@measurequick/measurequick-report-generator 1.5.229 → 1.5.230

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/util.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measurequick/measurequick-report-generator",
3
- "version": "1.5.229",
3
+ "version": "1.5.230",
4
4
  "description": "Generates PDF documents for various measureQuick applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/util.js CHANGED
@@ -290,6 +290,10 @@ export function getRangeIcon(test, ref, embeddedIcons) {
290
290
  }
291
291
 
292
292
  export function getElectricalData(test, suffix, embeddedIcons) {
293
+ // Ensure test.source exists
294
+ if (!test.source) test.source = {};
295
+ if (!test.data) test.data = {};
296
+
293
297
  let voltage = test.data[`voltage_nominal${suffix}`];
294
298
  let phase = test.data[`phase${suffix}`];
295
299
  let src = "_l1";