@builttocreate/engine-utils 2.9.0-beta.4 → 2.9.0-beta.5
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 +1 -2
- package/package.json +1 -1
package/dist/tableHelper.js
CHANGED
|
@@ -673,8 +673,7 @@ var generateTableLookup = exports.generateTableLookup = function generateTableLo
|
|
|
673
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
|
-
if (cellRawValue && typeof cellRawValue === 'number') cellValue = cellRawValue.toString();
|
|
677
|
-
if (cellRawValue === 0 && typeof cellRawValue === 'number') cellValue = '0';
|
|
676
|
+
if ((cellRawValue || cellRawValue === 0) && typeof cellRawValue === 'number') cellValue = cellRawValue.toString();
|
|
678
677
|
var formulaCell = cellValue !== undefined && cellValue.charAt(0) === '=';
|
|
679
678
|
var containsOperands = cellValue !== undefined && cellValue.match(/[A-Z]([0-9]{1,10})/gi);
|
|
680
679
|
if (cellValue && column.type === _FieldTableColumnTypes["default"].dropdown) {
|