atr-components 3.0.7 → 3.0.8

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.
@@ -3315,8 +3315,10 @@ class AtrTableComponent {
3315
3315
  this.refreshStatus();
3316
3316
  }
3317
3317
  refreshStatus() {
3318
- this.isAllDisplayDataChecked = this.tableDatas
3319
- .every((item) => this.mapOfCheckedId[item.id]);
3318
+ if (!this.tableDatas || this.tableDatas.length <= 0) {
3319
+ return;
3320
+ }
3321
+ this.isAllDisplayDataChecked = this.tableDatas.every((item) => this.mapOfCheckedId[item.id]);
3320
3322
  this.isIndeterminate =
3321
3323
  this.tableDatas.some((item) => this.mapOfCheckedId[item.id]) &&
3322
3324
  !this.isAllDisplayDataChecked;