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"]) {
|