law-common 11.2.0 → 11.3.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.
@@ -193,7 +193,7 @@ function parseEntities(json, baseEntity, entityMap) {
193
193
  if (!(baseEntity in exports.entityEnumToEntityModel)) {
194
194
  throw new Error(`Unknown entity: ${baseEntity}`);
195
195
  }
196
- entityMap[baseEntity] = ((entityMap[baseEntity] && entityMap[baseEntity].length > 0 ? [...entityMap[baseEntity], ...json["baseEntities"]] : json["baseEntities"]) || []).map(
196
+ entityMap[baseEntity] = ((entityMap[baseEntity] && entityMap[baseEntity].length > 0 ? [...entityMap[baseEntity], ...(json["baseEntities"] || [])] : json["baseEntities"] || []) || []).map(
197
197
  // @ts-ignore
198
198
  (e) => exports.entityEnumToEntityModel[baseEntity](e));
199
199
  if (json["relatedEntities"]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "11.2.0",
3
+ "version": "11.3.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [