Skip to content

Commit

Permalink
fix(tree-grid): add row with transactions to empty grid, #2921
Browse files Browse the repository at this point in the history
  • Loading branch information
wnvko committed Dec 5, 2018
1 parent da2e58e commit 60af885
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export class IgxTreeGridTransactionPipe implements PipeTransform {

transform(collection: any[], id: string, pipeTrigger: number): any[] {
const grid: IgxTreeGridComponent = this.gridAPI.get(id);
if (collection && collection.length > 0 && grid.transactions.enabled) {
if (collection && grid.transactions.enabled) {
const aggregatedChanges = grid.transactions.getAggregatedChanges(true);
if (aggregatedChanges.length > 0) {
const primaryKey = grid.primaryKey;
Expand Down

0 comments on commit 60af885

Please sign in to comment.