diff --git a/src/app/shared/cms/components/cms-carousel/cms-carousel.component.html b/src/app/shared/cms/components/cms-carousel/cms-carousel.component.html index 365ab6c19c..98e9890940 100644 --- a/src/app/shared/cms/components/cms-carousel/cms-carousel.component.html +++ b/src/app/shared/cms/components/cms-carousel/cms-carousel.component.html @@ -4,7 +4,7 @@ diff --git a/src/app/shared/cms/components/cms-carousel/cms-carousel.component.ts b/src/app/shared/cms/components/cms-carousel/cms-carousel.component.ts index c32bfd9e1b..d2e6c32934 100644 --- a/src/app/shared/cms/components/cms-carousel/cms-carousel.component.ts +++ b/src/app/shared/cms/components/cms-carousel/cms-carousel.component.ts @@ -43,19 +43,21 @@ export class CMSCarouselComponent implements CMSComponent, OnChanges, OnDestroy const slotPagelets = this.pagelet.slot('app_sf_base_cm:slot.carousel.items.pagelet2-Slot').pageletIDs; this.pageletSlides = arraySlices(slotPagelets, this.slideItems); - this.appRef.isStable - .pipe( - whenTruthy(), - map(() => (this.pagelet.booleanParam('StartCycling') ? this.pagelet.numberParam('SlideInterval', 5000) : 0)), - take(1), - takeUntil(this.destroy$) - ) - .subscribe(val => { - if (val) { - this.carousel.interval = val; - this.carousel.cycle(); - } - }); + if (!SSR) { + this.appRef.isStable + .pipe( + whenTruthy(), + map(() => (this.pagelet.booleanParam('StartCycling') ? this.pagelet.numberParam('SlideInterval', 5000) : 0)), + take(1), + takeUntil(this.destroy$) + ) + .subscribe(val => { + if (val && this.carousel) { + this.carousel.interval = val; + this.carousel.cycle(); + } + }); + } } ngOnDestroy() {