@builttocreate/engine-utils 1.17.2-rc2 → 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.
- package/dist/tableHelper.js +5 -1
- package/package.json +1 -1
package/dist/tableHelper.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|