Skip to content

Commit 815fcfd

Browse files
authored
refactor(module:pageheader): insure rxjs 6 compatibility (#9052)
1 parent f0e9d7f commit 815fcfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/page-header/page-header.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export class NzPageHeaderComponent implements AfterViewInit, OnDestroy, OnInit {
131131
}
132132

133133
ngAfterViewInit(): void {
134-
if (!this.nzBack.observed) {
134+
if (!this.nzBack.observers.length) {
135135
this.enableBackButton = (this.location.getState() as NzSafeAny)?.navigationId > 1;
136136
this.location.subscribe(() => {
137137
this.enableBackButton = true;

0 commit comments

Comments
 (0)