@builttocreate/engine-utils 1.9.0-rc.1.1.8 → 1.9.0-rc.1.2.0
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/activityHelper.js +3 -7
- package/package.json +1 -1
package/dist/activityHelper.js
CHANGED
|
@@ -172,13 +172,9 @@ var addDocumentDataToActivities = function addDocumentDataToActivities(activitie
|
|
|
172
172
|
nextActivity.document.value = _nextDocFieldValue;
|
|
173
173
|
} //This should handle adding the display value for selection and regular input fields
|
|
174
174
|
else {
|
|
175
|
-
var option = templateField.optionsLookup[docFieldValue];
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
nextActivity.document.value = option.value;
|
|
179
|
-
} else if (docFieldValue && docFieldValue !== 'null') {
|
|
180
|
-
nextActivity.document.value = docFieldValue;
|
|
181
|
-
}
|
|
175
|
+
var option = templateField.optionsLookup[docFieldValue];
|
|
176
|
+
if (docFieldValue && docFieldValue === 'null') return;
|
|
177
|
+
nextActivity.document.value = option && option.value ? option.value : docFieldValue;
|
|
182
178
|
}
|
|
183
179
|
}
|
|
184
180
|
|