@memberjunction/ng-explorer-core 0.9.62 → 0.9.63

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.
@@ -25,7 +25,11 @@ export function LoadRecordResource() {
25
25
  }
26
26
  let EntityRecordResource = class EntityRecordResource extends BaseResourceComponent {
27
27
  get primaryKeyValues() {
28
- const pKeys = SharedService.ParsePrimaryKeys(this.Data.Configuration.Entity, this.Data.ResourceRecordID);
28
+ const md = new Metadata();
29
+ const e = md.Entities.find(e => e.Name.trim().toLowerCase() === this.Data.Configuration.Entity.trim().toLowerCase());
30
+ if (!e)
31
+ throw new Error(`Entity ${this.Data.Configuration.Entity} not found in metadata`);
32
+ const pKeys = SharedService.ParsePrimaryKeys(e, this.Data.ResourceRecordID);
29
33
  return pKeys;
30
34
  }
31
35
  GetResourceDisplayName(data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-explorer-core",
3
- "version": "0.9.62",
3
+ "version": "0.9.63",
4
4
  "description": "MemberJunction Explorer: Core Angular Components",
5
5
  "main": "./dist/public-api.js",
6
6
  "typings": "./dist/public-api.d.ts",