Skip to content

Commit

Permalink
fix(module:dropdown): fix unsubscribe undefined bug (#464)
Browse files Browse the repository at this point in the history
close #269
  • Loading branch information
vthinkxie authored Oct 21, 2017
1 parent 704aa45 commit a0dcad3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/dropdown/nz-dropdown.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ export class NzDropDownComponent implements OnInit, OnDestroy, AfterViewInit {
}

ngOnDestroy() {
this._subscription.unsubscribe();
if (this._subscription) {
this._subscription.unsubscribe();
}
}

ngAfterViewInit() {
Expand Down

0 comments on commit a0dcad3

Please sign in to comment.