diff --git a/src/app/components/carousel/carousel.ts b/src/app/components/carousel/carousel.ts index 2fb40228f96..63a78571cc0 100755 --- a/src/app/components/carousel/carousel.ts +++ b/src/app/components/carousel/carousel.ts @@ -480,7 +480,7 @@ export class Carousel implements AfterContentInit { } totalDots() { - return this.value ? Math.ceil((this.value.length - this._numVisible) / this._numScroll) + 1 : 0; + return this.value?.length ? Math.ceil((this.value.length - this._numVisible) / this._numScroll) + 1 : 0; } totalDotsArray() {