@trudb/tru-common-lib 0.0.338 → 0.0.339

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.
@@ -4952,8 +4952,13 @@ class TruBreezeValidator {
4952
4952
  this.valErrsChanged = (validationObject) => {
4953
4953
  let validationTableName = validationObject.entity.constructor.name;
4954
4954
  if (this.config.rootTable === validationTableName) {
4955
- let addedPropertyValdations = validationObject.added.find((v) => { v.propertyName === this.config.propertyName; });
4956
- let removedPropertyValdations = validationObject.removed.find((v) => { v.propertyName === this.config.propertyName; });
4955
+ this.mergeData = this.getMergeData();
4956
+ let addedPropertyValdations = validationObject.added.filter((v) => {
4957
+ return v.propertyName === this.config.propertyName;
4958
+ });
4959
+ let removedPropertyValdations = validationObject.removed.filter((v) => {
4960
+ return v.propertyName === this.config.propertyName;
4961
+ });
4957
4962
  if (addedPropertyValdations.length) {
4958
4963
  this.addValidation(addedPropertyValdations);
4959
4964
  }
@@ -4961,9 +4966,6 @@ class TruBreezeValidator {
4961
4966
  this.removeValidation();
4962
4967
  }
4963
4968
  }
4964
- if (this.config.rootTable === validationTableName) {
4965
- this.mergeData = this.getMergeData();
4966
- }
4967
4969
  };
4968
4970
  }
4969
4971
  ngOnInit() {