@measurequick/measurequick-report-generator 1.2.76 → 1.2.78
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
|
@@ -144,7 +144,7 @@ export async function getReport(payload) { console.log("Measurement Details - Pa
|
|
|
144
144
|
form.getTextField(`Block${blockNum}-Row${rowNum}-Col1`).setText(`${measurement.label} ${units}`);
|
|
145
145
|
let val = measurement.value ? measurement.value : (+test.data[measurement.ref]);
|
|
146
146
|
if (!val) val = "--";
|
|
147
|
-
else if (measurement.fixTo) val = val.toFixed(measurement.fixTo);
|
|
147
|
+
else if (measurement.fixTo && typeof val == 'number') val = val.toFixed(measurement.fixTo);
|
|
148
148
|
form.getTextField(`Block${blockNum}-Row${rowNum}-Col2`).setText(`${val}`);
|
|
149
149
|
if (blockNum != 4) {
|
|
150
150
|
let rangeIcon = util.getRangeIcon(test, measurement.ref, embeddedIcons);
|