@datorama/core 22.8.1-rc.1 → 22.8.1-rc.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.
@@ -14273,8 +14273,9 @@ var GridService = /** @class */ (function () {
14273
14273
  if (isPivotColId || valueColumn) {
14274
14274
  /** Column is pivot value column, sort by index */
14275
14275
  var columnByIndex = gridColumns[sortIndex];
14276
- var valueColumnId = columnByIndex && columnByIndex.getColDef().pivotValueColumn.getColId();
14277
- if (valueColumnId === colId_1) {
14276
+ var pivotValueColumn = columnByIndex && columnByIndex.getColDef().pivotValueColumn;
14277
+ var pivotValueColumnId = pivotValueColumn && pivotValueColumn.getColId();
14278
+ if (pivotValueColumnId === colId_1) {
14278
14279
  sortToApply = { colId: columnByIndex.getColId(), sort: sort };
14279
14280
  }
14280
14281
  }