@builttocreate/engine-utils 2.9.1-beta.1163 → 2.9.1-beta.1169
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/dist/tableHelper.js +4 -8
- package/package.json +1 -1
package/dist/tableHelper.js
CHANGED
|
@@ -390,9 +390,7 @@ var getDefaultImageColumn = exports.getDefaultImageColumn = function getDefaultI
|
|
|
390
390
|
type: _FieldTableColumnTypes["default"].image,
|
|
391
391
|
title: 'Image Column',
|
|
392
392
|
deleted: false,
|
|
393
|
-
width: 200
|
|
394
|
-
maxImageWidth: 190,
|
|
395
|
-
maxImageHeight: 120
|
|
393
|
+
width: 200
|
|
396
394
|
}, defaults);
|
|
397
395
|
};
|
|
398
396
|
|
|
@@ -760,15 +758,13 @@ var generateTableLookup = exports.generateTableLookup = function generateTableLo
|
|
|
760
758
|
});
|
|
761
759
|
var formulaCells = [];
|
|
762
760
|
tableRows.forEach(function (row, rowIndex) {
|
|
763
|
-
var cells = row.cells || {}; // Fallback if missing
|
|
764
|
-
|
|
765
761
|
// eslint-disable-next-line no-console
|
|
766
|
-
if (!row.cells) console.warn("Missing 'cells' in row: ".concat(row._id));
|
|
762
|
+
if (!(row !== null && row !== void 0 && row.cells)) console.warn("Missing 'cells' in row: ".concat(row._id));
|
|
767
763
|
tableColumns.forEach(function (column) {
|
|
768
764
|
if (!column.operand) return;
|
|
765
|
+
if (!row) console.warn("Row via column ".concat(column === null || column === void 0 ? void 0 : column._id, " is undefined."));
|
|
769
766
|
var cellKey = "".concat(column.operand).concat(rowIndex + 1);
|
|
770
|
-
var cellRawValue = cells[column._id]
|
|
771
|
-
|
|
767
|
+
var cellRawValue = row && row !== null && row !== void 0 && row.cells && row.cells[column._id] ? row.cells[column._id] : undefined;
|
|
772
768
|
var cellValue;
|
|
773
769
|
if (cellRawValue && typeof cellRawValue === 'string') cellValue = cellRawValue.trim();
|
|
774
770
|
if (cellRawValue && typeof cellRawValue === 'number') cellValue = cellRawValue.toString();
|