@indice/ng-components 0.2.65 → 0.2.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1944,7 +1944,19 @@
1944
1944
  };
1945
1945
  ShellHeaderComponent.prototype.ngOnInit = function () {
1946
1946
  var _this = this;
1947
- this.sectionLinks = this.links[this.sectionLinksPath];
1947
+ var obsLinks = this.links[this.sectionLinksPath];
1948
+ if (obsLinks) {
1949
+ if (rxjs.isObservable(obsLinks)) {
1950
+ this.sectionLinks = obsLinks;
1951
+ }
1952
+ else {
1953
+ this.sectionLinks = rxjs.of(obsLinks);
1954
+ }
1955
+ }
1956
+ else {
1957
+ this.sectionLinks = rxjs.of([]);
1958
+ }
1959
+ // this.sectionLinks = this.links[this.sectionLinksPath] as NavLink[] | Observable<NavLink[]>;
1948
1960
  this.routerSub$ = this.routeSubject.subscribe(function (event) {
1949
1961
  _this.mobileMenuExpanded = false;
1950
1962
  _this.userMenuExpanded = false;