@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.
@@ -14472,8 +14472,9 @@
14472
14472
  if (isPivotColId || valueColumn) {
14473
14473
  /** Column is pivot value column, sort by index */
14474
14474
  var columnByIndex = gridColumns[sortIndex];
14475
- var valueColumnId = columnByIndex && columnByIndex.getColDef().pivotValueColumn.getColId();
14476
- if (valueColumnId === colId_1) {
14475
+ var pivotValueColumn = columnByIndex && columnByIndex.getColDef().pivotValueColumn;
14476
+ var pivotValueColumnId = pivotValueColumn && pivotValueColumn.getColId();
14477
+ if (pivotValueColumnId === colId_1) {
14477
14478
  sortToApply = { colId: columnByIndex.getColId(), sort: sort };
14478
14479
  }
14479
14480
  }