cat-qw-lib 0.27.2 → 0.28.2

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.
@@ -595,8 +595,8 @@ class BaseControlComponent {
595
595
  }
596
596
  addToAttributeList() {
597
597
  if (this.attributeModel) {
598
- if (!BaseControlComponent.allAttributes.some(attr => (attr.name === this.attributeModel.name && attr.displayText === this.attributeModel.displayText))) {
599
- BaseControlComponent.allAttributes.push(this.attributeModel);
598
+ if (!BaseControlComponent.allAttributes.some(attr => attr.name === this.attributeModel.name && attr.displayText === this.attributeModel.displayText)) {
599
+ BaseControlComponent.allAttributes = [...BaseControlComponent.allAttributes, this.attributeModel];
600
600
  }
601
601
  this.baseStore.setAttributeModelList(BaseControlComponent.allAttributes);
602
602
  }