@builttocreate/engine-utils 1.5.1 → 1.5.2

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.
@@ -685,13 +685,15 @@ var generateInputGroupFields = function generateInputGroupFields(field, columns)
685
685
  exports.generateInputGroupFields = generateInputGroupFields;
686
686
 
687
687
  var handleTableCellChange = function handleTableCellChange(rows, rowId, columnId, val, callback) {
688
- var row = rows.find(function (row) {
688
+ var targetRowIndex = rows.findIndex(function (row) {
689
689
  return row._id === rowId;
690
690
  });
691
+ var row = rows[targetRowIndex];
691
692
  var cells = row ? row.cells : {}; //Only save data if value has changed
692
693
 
693
694
  if (cells[columnId] !== val && callback) {
694
695
  callback({
696
+ targetRowIndex: targetRowIndex,
695
697
  row: {
696
698
  _id: rowId,
697
699
  cells: (0, _defineProperty2["default"])({}, columnId, val)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builttocreate/engine-utils",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Utility library for common logic shared across web and mobile",
5
5
  "main": "dist/index.js",
6
6
  "files": [