diff --git a/src/app/core/store/shopping/categories/categories.effects.ts b/src/app/core/store/shopping/categories/categories.effects.ts index 694b67eb8e..3dd5f95dbb 100644 --- a/src/app/core/store/shopping/categories/categories.effects.ts +++ b/src/app/core/store/shopping/categories/categories.effects.ts @@ -109,7 +109,7 @@ export class CategoriesEffects { personalizationStatusDetermined ), switchMap(() => - this.categoryService.getTopLevelCategories(this.mainNavigationMaxSubCategoriesDepth).pipe( + this.categoryService.getTopLevelCategories(SSR ? 0 : this.mainNavigationMaxSubCategoriesDepth).pipe( map(categories => loadTopLevelCategoriesSuccess({ categories })), mapErrorToAction(loadTopLevelCategoriesFail) ) diff --git a/src/app/shell/header/header-navigation/header-navigation.component.html b/src/app/shell/header/header-navigation/header-navigation.component.html index 1325a9471a..80289cc619 100644 --- a/src/app/shell/header/header-navigation/header-navigation.component.html +++ b/src/app/shell/header/header-navigation/header-navigation.component.html @@ -18,7 +18,7 @@ > {{ category.name }} - +