@builttocreate/engine-utils 2.9.0-beta.3 → 2.9.0-beta.4

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.
@@ -670,10 +670,11 @@ var generateTableLookup = exports.generateTableLookup = function generateTableLo
670
670
  tableColumns.forEach(function (column) {
671
671
  if (!column.operand) return;
672
672
  var cellKey = "".concat(column.operand).concat(rowIndex + 1);
673
- var cellRawValue = row.cells[column._id] ? row.cells[column._id] : undefined;
673
+ var cellRawValue = row.cells[column._id] === 0 || row.cells[column._id] ? row.cells[column._id] : undefined;
674
674
  var cellValue;
675
675
  if (cellRawValue && typeof cellRawValue === 'string') cellValue = cellRawValue.trim();
676
676
  if (cellRawValue && typeof cellRawValue === 'number') cellValue = cellRawValue.toString();
677
+ if (cellRawValue === 0 && typeof cellRawValue === 'number') cellValue = '0';
677
678
  var formulaCell = cellValue !== undefined && cellValue.charAt(0) === '=';
678
679
  var containsOperands = cellValue !== undefined && cellValue.match(/[A-Z]([0-9]{1,10})/gi);
679
680
  if (cellValue && column.type === _FieldTableColumnTypes["default"].dropdown) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builttocreate/engine-utils",
3
- "version": "2.9.0-beta.3",
3
+ "version": "2.9.0-beta.4",
4
4
  "description": "Utility library for common logic shared across web and mobile",
5
5
  "main": "dist/index.js",
6
6
  "files": [