@builttocreate/engine-utils 2.9.0 → 2.9.1
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 +3 -1
- package/package.json +1 -1
package/dist/tableHelper.js
CHANGED
|
@@ -631,8 +631,10 @@ var generateTableLookup = exports.generateTableLookup = function generateTableLo
|
|
|
631
631
|
tableRows.forEach(function (row, rowIndex) {
|
|
632
632
|
tableColumns.forEach(function (column) {
|
|
633
633
|
if (!column.operand) return;
|
|
634
|
+
if (!row) console.warn("Row via column ".concat(column === null || column === void 0 ? void 0 : column._id, " is undefined."));
|
|
635
|
+
if (!(row !== null && row !== void 0 && row.cells)) console.warn("Row ".concat(row === null || row === void 0 ? void 0 : row._id, " is missing cells."));
|
|
634
636
|
var cellKey = "".concat(column.operand).concat(rowIndex + 1);
|
|
635
|
-
var cellRawValue = row.cells[column._id] ? row.cells[column._id] : undefined;
|
|
637
|
+
var cellRawValue = row !== null && row !== void 0 && row.cells && row.cells[column._id] ? row.cells[column._id] : undefined;
|
|
636
638
|
var cellValue;
|
|
637
639
|
if (cellRawValue && typeof cellRawValue === 'string') cellValue = cellRawValue.trim();
|
|
638
640
|
if (cellRawValue && typeof cellRawValue === 'number') cellValue = cellRawValue.toString();
|