ngx-aur-mat-table 12.2.27 → 12.2.29

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.
@@ -1116,14 +1116,17 @@
1116
1116
  }
1117
1117
  Object.defineProperty(NgxAurMatTableComponent.prototype, "displayColumns", {
1118
1118
  set: function (columns) {
1119
- this._displayColumns = __spreadArray([], __read(columns));
1120
- this._customDisplayColumnsEnabled = columns && columns.length > 0;
1119
+ if (columns) {
1120
+ this._displayColumns = __spreadArray([], __read(columns));
1121
+ this._customDisplayColumnsEnabled = columns && columns.length > 0;
1122
+ }
1121
1123
  },
1122
1124
  enumerable: false,
1123
1125
  configurable: true
1124
1126
  });
1125
1127
  NgxAurMatTableComponent.prototype.ngOnChanges = function (changes) {
1126
1128
  if ((changes['tableData'] && this.tableData) || (changes['displayColumns'] && this._displayColumns)) {
1129
+ this.tableData = this.tableData || [];
1127
1130
  this.prepareTableData();
1128
1131
  }
1129
1132
  if (changes['highlight'] && this.highlight) {