Skip to content

Commit

Permalink
fix(module:upload): ensure i18n$ is defined on unsubscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
aitboudad authored Oct 25, 2020
1 parent 4a00b69 commit 2d390e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/upload/upload.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ export class NzUploadComponent implements OnInit, OnChanges, OnDestroy {
}

ngOnDestroy(): void {
this.i18n$.unsubscribe();
if (this.i18n$) {
this.i18n$.unsubscribe();
}
}
}

0 comments on commit 2d390e2

Please sign in to comment.