@builttocreate/engine-utils 1.1.0 → 1.1.1

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.
@@ -276,7 +276,7 @@ var generateTableFieldLookups = function generateTableFieldLookups(doc, template
276
276
  return tableLookups;
277
277
  };
278
278
  /**
279
- * Organize the table lookup on a row by row basis
279
+ * Organize the table lookup on a row by row basis
280
280
  * @param {Array} rows
281
281
  * @param {Array} columns
282
282
  * @retuns {Object}
@@ -371,8 +371,8 @@ var generateTableLookup = function generateTableLookup(rows, columns) {
371
371
  } else if (cellValue && formulaCell && containsOperands) {
372
372
  formulaCells.push(cellKey);
373
373
  tableLookup[cellKey] = cellValue;
374
- } else if (cellValue) {
375
- tableLookup[cellKey] = cellValue;
374
+ } else {
375
+ tableLookup[cellKey] = cellValue || '';
376
376
  }
377
377
  });
378
378
  });
@@ -771,7 +771,7 @@ var handleMoveTableRowDown = function handleMoveTableRowDown(rows, rowIndex, cal
771
771
  rows.forEach((row, rowIndex) => {
772
772
  columns.forEach((column, columnIndex) => {
773
773
 
774
- const columnWidth = column.type === FieldTableColumnTypes.text ?
774
+ const columnWidth = column.type === FieldTableColumnTypes.text ?
775
775
  columnWidthLookup[FieldTableColumnTypes.text] : columnWidthLookup[FieldTableColumnTypes.dropdown];
776
776
 
777
777
  cellLookup[`${rowIndex}-${columnIndex}`] = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builttocreate/engine-utils",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Utility library for common logic shared across web and mobile",
5
5
  "main": "dist/index.js",
6
6
  "files": [