Skip to content

Commit

Permalink
fix(pagination): ondestroy check (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
yd-allianz authored and GitHub Enterprise committed Sep 15, 2021
1 parent fb477e5 commit 62eca10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ng-aquila/src/pagination/pagination.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class NxPaginationComponent implements OnInit, AfterContentInit, AfterVie
}

ngOnDestroy() {
this._linkElements.forEach(link => this._focusMonitor.stopMonitoring(link));
this._linkElements?.forEach(link => this._focusMonitor.stopMonitoring(link));
this._dirChangeSubscription.unsubscribe();
}

Expand Down

0 comments on commit 62eca10

Please sign in to comment.