Skip to content

Commit

Permalink
Fix salesagility#560 - removed equality check between fieldKey and na…
Browse files Browse the repository at this point in the history
…me in return condition of addFieldDepedency() to allow addition of the field itself as a dependency
  • Loading branch information
xkrdudrlf committed Oct 28, 2024
1 parent 8d7adbf commit a4d953f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/core/src/lib/fields/base/base-field.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export class BaseFieldComponent implements FieldComponentInterface, OnInit, OnDe
protected addFieldDependency(fieldKey: string, dependentFields: ObjectMap, dependentAttributes: AttributeDependency[]): void {
const field = this.record.fields[fieldKey];
const name = this.field.name || this.field.definition.name || '';
if (fieldKey === name || !field) {
if (!field) {
return;
}

Expand Down

0 comments on commit a4d953f

Please sign in to comment.