@builttocreate/engine-utils 2.10.1-beta.1562.0 → 2.10.1-beta.1562.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.
@@ -196,9 +196,11 @@ var removeOrphanedFieldsFromJoydoc = exports.removeOrphanedFieldsFromJoydoc = fu
196
196
  */
197
197
  var validFields = [];
198
198
  var deletedFields = [];
199
- nextDoc.fields.forEach(function (field) {
200
- if (associatedFieldIdLookup[field._id]) validFields.push(field);else deletedFields.push(field);
201
- });
199
+ if (nextDoc.fields && nextDoc.fields.length > 0) {
200
+ nextDoc.fields.forEach(function (field) {
201
+ if (associatedFieldIdLookup[field._id]) validFields.push(field);else deletedFields.push(field);
202
+ });
203
+ }
202
204
  nextDoc.fields = validFields;
203
205
  return {
204
206
  nextDoc: nextDoc,
@@ -734,7 +734,6 @@ var generateTableLookup = exports.generateTableLookup = function generateTableLo
734
734
  var tableLookup = {};
735
735
  var columnOptionsLookup = {};
736
736
  var tableColumns = [];
737
- console.log('rows, columns', rows, columns);
738
737
  var filteredColumns = columns.filter(function (column) {
739
738
  return !column.deleted //Used by both web and mobile
740
739
  && column._id !== _FieldTableCustomColumnIds["default"].rowMenu //Used on mobile
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builttocreate/engine-utils",
3
- "version": "2.10.1-beta.1562.0",
3
+ "version": "2.10.1-beta.1562.1",
4
4
  "description": "Utility library for common logic shared across web and mobile",
5
5
  "main": "dist/index.js",
6
6
  "files": [