@builttocreate/engine-utils 2.10.1-beta.v593.30 → 2.10.1-beta.v593.31

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.
@@ -174,7 +174,8 @@ var getCleanedJoyDoc = exports.getCleanedJoyDoc = function getCleanedJoyDoc(doc)
174
174
  /**
175
175
  * Step 1.3: Replace files[x]._id if it is not valid (always use objectId for files)
176
176
  */
177
- if (nextFile._id && !(0, _validateObjectId["default"])(nextFile._id && !(0, _validateReadableId["default"])(nextFile._id))) nextFile._id = (0, _generateObjectId["default"])();
177
+ if (nextFile._id && !(0, _validateObjectId["default"])(nextFile._id)) nextFile._id = (0, _generateObjectId["default"])();
178
+ if (nextFile._id && (0, _validateReadableId["default"])(nextFile._id)) nextFile._id = nextFile._id;
178
179
 
179
180
  /**
180
181
  * Step 1.4: Replace page ids and field ids if they are not valid
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builttocreate/engine-utils",
3
- "version": "2.10.1-beta.v593.30",
3
+ "version": "2.10.1-beta.v593.31",
4
4
  "description": "Utility library for common logic shared across web and mobile",
5
5
  "main": "dist/index.js",
6
6
  "files": [