Skip to content

Commit

Permalink
fix(validation-messages): fix invalid own property check in updating …
Browse files Browse the repository at this point in the history
…error messages fn
  • Loading branch information
Herdu committed Apr 15, 2022
1 parent 6bda99a commit b48a770
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class ValidationMessagesComponent implements OnDestroy, DoCheck {
if (this.control && this.control.errors) {
for (const propertyName in this.control.errors) {
if (
Object.prototype.hasOwnProperty.call(this.control, propertyName) &&
Object.prototype.hasOwnProperty.call(this.control.errors, propertyName) &&
propertyName !== "server" &&
!(!this.multiple && this.errorMessages.length === 1)
) {
Expand Down

0 comments on commit b48a770

Please sign in to comment.