Skip to content

Commit

Permalink
chore(*): add check for transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
igdmdimitrov committed Jan 31, 2024
1 parent 4710834 commit 337c5ad
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ export class IgxTreeGridGroupingPipe implements PipeTransform {

const result = [];

const updatedCollection = DataUtil.mergeTransactions(
cloneArray(collection, true),
grid.transactions.getAggregatedChanges(true),
grid.primaryKey);
const updatedCollection = grid.transactions ?
DataUtil.mergeTransactions(
cloneArray(collection, true),
grid.transactions.getAggregatedChanges(true),
grid.primaryKey) :
collection;

const groupedRecords = this.groupByMultiple(updatedCollection, groupingExpressions);
this.flattenGrouping(groupedRecords, groupKey,
Expand Down

0 comments on commit 337c5ad

Please sign in to comment.