Skip to content

Commit ae0e6aa

Browse files
committed
chore(*): Makes event property mandatory
1 parent 2f3d1fe commit ae0e6aa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2858,7 +2858,7 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
28582858
this.summaryService.clearSummaryCache(args);
28592859
});
28602860

2861-
this.transactions.onStateUpdate.pipe(destructor).subscribe((event?: StateUpdateEvent) => {
2861+
this.transactions.onStateUpdate.pipe(destructor).subscribe((event: StateUpdateEvent) => {
28622862
let actions = [];
28632863
if (event.origin === TransactionEventOrigin.REDO) {
28642864
actions = event.actions ? event.actions.filter(x => x.transaction.type === TransactionType.DELETE) : [];

projects/igniteui-angular/src/lib/grids/tree-grid/tree-grid.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy
353353
this.loadChildrenOnRowExpansion(args);
354354
});
355355

356-
this.transactions.onStateUpdate.pipe(takeUntil<any>(this.destroy$)).subscribe((event?: StateUpdateEvent) => {
356+
this.transactions.onStateUpdate.pipe(takeUntil<any>(this.destroy$)).subscribe((event: StateUpdateEvent) => {
357357
let actions = [];
358358
if (event.origin === TransactionEventOrigin.REDO) {
359359
actions = event.actions ? event.actions.filter(x => x.transaction.type === TransactionType.DELETE) : [];

projects/igniteui-angular/src/lib/services/transaction/igx-transaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class IgxTransactionService<T extends Transaction, S extends State> exten
4848
const actions = [{ transaction, recordRef }];
4949
this._undoStack.push(actions);
5050
this._redoStack = [];
51-
this.onStateUpdate.emit({ origin: TransactionEventOrigin.ADD, actions: actions });
51+
this.onStateUpdate.emit({ origin: TransactionEventOrigin.ADD, actions });
5252
}
5353
}
5454

0 commit comments

Comments
 (0)