@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.
@@ -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] || null;
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*/, "break"];
4866
+ return [2 /*return*/, "continue"];
4867
4867
  }
4868
4868
  isSame = false;
4869
4869
  if (field.UIDataType == 'multiselect' || field.UIDataType == 'multilookup') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimiser/common",
3
- "version": "1.0.391",
3
+ "version": "1.0.392",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {