@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.
- package/package.json +1 -1
- package/util.js +4 -0
package/package.json
CHANGED
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";
|