diff --git a/src/app/shell/workshop-details/workshop-page/workshop-page.component.ts b/src/app/shell/workshop-details/workshop-page/workshop-page.component.ts index a8f97267b5..1c31ff33a2 100644 --- a/src/app/shell/workshop-details/workshop-page/workshop-page.component.ts +++ b/src/app/shell/workshop-details/workshop-page/workshop-page.component.ts @@ -33,7 +33,7 @@ export class WorkshopPageComponent implements OnInit, OnDestroy { getWorkshopImages(): void { if (this.workshop.imageIds.length) { - this.workshop.imageIds.forEach((imgId) => this.images.push({ path: this.imgUrl + imgId })) + this.images = this.workshop.imageIds.map((imgId) => { return { path: this.imgUrl + imgId } }) } else { this.images.push({ path: 'assets/images/groupimages/workshop-img.png' }) } diff --git a/yarn.lock b/yarn.lock index 2ffdac903d..39724aefe5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2031,6 +2031,13 @@ angular-auth-oidc-client@^11.5.0: jsrsasign-reduced "^8.0.15" tslib "^2.0.0" +angular-responsive-carousel@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/angular-responsive-carousel/-/angular-responsive-carousel-2.1.2.tgz#151adacb80835e374d6b9a3b99ff6d0cf4bd82ec" + integrity sha512-nOCEyL9R80kW876GY8KvXoPu9fHu3nEnA2RVoFZ3hnBLx/OIdebeKFTxfogWLgbI4S1xn+vOecY/a+GnAQNc8w== + dependencies: + tslib "^2.0.0" + ansi-colors@4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348"