@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.
- package/dist/tableHelper.js +2 -1
- package/package.json +1 -1
package/dist/tableHelper.js
CHANGED
|
@@ -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) {
|