@builttocreate/engine-utils 1.9.0-rc.1.2.0 → 1.9.0-rc.1.2.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.
@@ -165,6 +165,7 @@ var addDocumentDataToActivities = function addDocumentDataToActivities(activitie
165
165
  if (parsedDocFieldValue.length > 0) {
166
166
  parsedDocFieldValue.forEach(function (item) {
167
167
  var option = templateField.optionsLookup[item];
168
+ if (!option) return;
168
169
  _nextDocFieldValue = _nextDocFieldValue.concat(' ', option.value);
169
170
  });
170
171
  }
@@ -173,7 +174,6 @@ var addDocumentDataToActivities = function addDocumentDataToActivities(activitie
173
174
  } //This should handle adding the display value for selection and regular input fields
174
175
  else {
175
176
  var option = templateField.optionsLookup[docFieldValue];
176
- if (docFieldValue && docFieldValue === 'null') return;
177
177
  nextActivity.document.value = option && option.value ? option.value : docFieldValue;
178
178
  }
179
179
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builttocreate/engine-utils",
3
- "version": "1.9.0-rc.1.2.0",
3
+ "version": "1.9.0-rc.1.2.1",
4
4
  "description": "Utility library for common logic shared across web and mobile",
5
5
  "main": "dist/index.js",
6
6
  "files": [