law-common 10.45.3-beta.2 → 10.45.3-beta.3

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.
@@ -102,9 +102,10 @@ function parseEntities(json, baseEntity, entityMap) {
102
102
  throw new Error(`Unknown entity: ${baseEntity}`);
103
103
  }
104
104
  console.log("entityMap 1", entityMap);
105
- entityMap[baseEntity] = (entityMap[baseEntity].length > 0
105
+ console.log("ssssssssssssssssssssssssss");
106
+ entityMap[baseEntity] = (entityMap[baseEntity] && entityMap[baseEntity].length > 0
106
107
  ? [...entityMap[baseEntity], ...json["baseEntities"]]
107
- : []).map(
108
+ : json["baseEntities"]).map(
108
109
  // @ts-ignore
109
110
  (e) => exports.entityEnumToEntityModel[baseEntity](e));
110
111
  console.log("entityMap 2", entityMap);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "10.45.3-beta.2",
3
+ "version": "10.45.3-beta.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [