mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 23:13:04 +00:00
fixed an issue where the reducers wouldn't be combined correctly when using AoT compilation
This commit is contained in:
@@ -19,9 +19,7 @@ export class HeaderComponent implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.isNavBarCollapsed = this.store.select('headerReducer')
|
||||
//ensure that state is not null, can happen when using AoT compilation
|
||||
.filter((state: HeaderState) => state !== null && state !== undefined)
|
||||
this.isNavBarCollapsed = this.store.select('header')
|
||||
//unwrap navCollapsed
|
||||
.map(({ navCollapsed }: HeaderState) => navCollapsed);
|
||||
}
|
||||
|
Reference in New Issue
Block a user