@natec/mef-dev-ui-kit 20.1.26 → 20.1.27

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.
@@ -15339,7 +15339,7 @@ class MDGridComponent {
15339
15339
  // ═══════════════════════════════════════════════════════════════════════════
15340
15340
  /** Total items count for the paginator */
15341
15341
  get _paginatorCount() {
15342
- return this.count ?? this.rows.length;
15342
+ return this.count ?? this.rows?.length ?? 0;
15343
15343
  }
15344
15344
  /**
15345
15345
  * Handle page event from md-paginator
@@ -15450,7 +15450,7 @@ class MDGridComponent {
15450
15450
  this._internalColumns = this.columns.map(col => toInternalColumn(col, this.defaultColumnWidth));
15451
15451
  }
15452
15452
  _processRows() {
15453
- let processed = [...this.rows];
15453
+ let processed = [...this?.rows ?? []];
15454
15454
  // Sort (if internal sorting)
15455
15455
  if (!this.externalSorting && this.sorts.length > 0) {
15456
15456
  processed = sortRows(processed, this.sorts, this._internalColumns);