Skip to content

Commit

Permalink
fix(module:dropdown): fix unsubscribe undefined bug
Browse files Browse the repository at this point in the history
close #269
  • Loading branch information
执衡 committed Oct 21, 2017
1 parent 03b87c1 commit e2ec88f
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 e2ec88f

Please sign in to comment.