@builttocreate/engine-utils 1.17.2-rc1 → 1.17.2-rc3

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.
@@ -617,9 +617,13 @@ var generateTableLookup = function generateTableLookup(rows, columns) {
617
617
  tableRows.forEach(function (row, rowIndex) {
618
618
  tableColumns.forEach(function (column) {
619
619
  if (!column.operand) return;
620
+ console.log('row.cells:', row.cells);
620
621
  var cellKey = "".concat(column.operand).concat(rowIndex + 1);
622
+ console.log(' row.cells[column._id]:', row.cells[column._id]);
621
623
  var cellRawValue = row.cells[column._id] ? row.cells[column._id] : undefined;
622
- var cellValue = cellRawValue ? cellRawValue.trim() : undefined;
624
+ console.log('cellRawValue:', cellRawValue);
625
+ var cellValue = cellRawValue && typeof cellRawValue === 'string' ? cellRawValue.trim() : undefined;
626
+ console.log('cellValue:', cellValue);
623
627
  var formulaCell = cellValue !== undefined && cellValue.charAt(0) === '=';
624
628
  var containsOperands = cellValue !== undefined && cellValue.match(/[A-Z]([0-9]{1,10})/gi);
625
629
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builttocreate/engine-utils",
3
- "version": "1.17.2-rc1",
3
+ "version": "1.17.2-rc3",
4
4
  "description": "Utility library for common logic shared across web and mobile",
5
5
  "main": "dist/index.js",
6
6
  "files": [