@memberjunction/ng-link-directives 0.9.112 → 0.9.113

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.
@@ -40,8 +40,9 @@ export class FieldLink extends BaseLink {
40
40
  if (nameFieldValue && nameFieldValue.length > 0)
41
41
  this.renderer.setProperty(this.el.nativeElement, 'textContent', nameFieldValue);
42
42
  }
43
- else {
44
- // no luck, no related entity name field map provided in the entity field metadata, so do a lookup
43
+ else if (this.field.Value) {
44
+ // make sure that this.field.Value is not null or undefined
45
+ // we didn't have the related field mapping info (above), no related entity name field map provided in the entity field metadata, so do a lookup
45
46
  // requires a server round trip and hitting the DB, so we try to avoid this
46
47
  const md = new Metadata();
47
48
  md.GetEntityRecordName(relatedEntity, [{ FieldName: "ID", Value: this.field.Value }]).then(recordName => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-link-directives",
3
- "version": "0.9.112",
3
+ "version": "0.9.113",
4
4
  "description": "MemberJunction: Angular Link Directives for turning an element in an angular app into an email, web, or record link",
5
5
  "main": "./dist/public-api.js",
6
6
  "typings": "./dist/public-api.d.ts",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "tslib": "^2.3.0",
33
- "@memberjunction/core": "^0.9.150"
33
+ "@memberjunction/core": "^0.9.151"
34
34
  },
35
35
  "sideEffects": false
36
36
  }