@optimiser/common 1.0.391 → 1.0.392
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/lib/utility.js +2 -2
- package/package.json +1 -1
package/dist/lib/utility.js
CHANGED
|
@@ -4859,11 +4859,11 @@ function ValidateUserInput(options) {
|
|
|
4859
4859
|
return [4 /*yield*/, db.collection(objectName).findOne({ '_id': documentID })];
|
|
4860
4860
|
case 2:
|
|
4861
4861
|
parentData = _k.sent();
|
|
4862
|
-
oldValue = parentData[fieldName]
|
|
4862
|
+
oldValue = parentData[fieldName] != undefined ? parentData[fieldName] : null;
|
|
4863
4863
|
newValue = fieldData;
|
|
4864
4864
|
// Check if newValue is undefined
|
|
4865
4865
|
if (newValue === undefined) {
|
|
4866
|
-
return [2 /*return*/, "
|
|
4866
|
+
return [2 /*return*/, "continue"];
|
|
4867
4867
|
}
|
|
4868
4868
|
isSame = false;
|
|
4869
4869
|
if (field.UIDataType == 'multiselect' || field.UIDataType == 'multilookup') {
|