From 1f9221e26b715a3256c9160e515b30f0556c99ee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de>
Date: Wed, 28 Nov 2018 00:41:12 +0100
Subject: [PATCH] Fix und remove useless code

---
 .../participant-content-carousel-page.component.ts          | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/app/components/participant/participant-content-carousel-page/participant-content-carousel-page.component.ts b/src/app/components/participant/participant-content-carousel-page/participant-content-carousel-page.component.ts
index 6791be5a4..2d24632f7 100644
--- a/src/app/components/participant/participant-content-carousel-page/participant-content-carousel-page.component.ts
+++ b/src/app/components/participant/participant-content-carousel-page/participant-content-carousel-page.component.ts
@@ -1,7 +1,6 @@
 import { Component, OnInit } from '@angular/core';
 import { ContentType } from '../../../models/content-type.enum';
 import { ContentService } from '../../../services/http/content.service';
-import { ActivatedRoute } from '@angular/router';
 import { Content } from '../../../models/content';
 
 class ContentGroup {
@@ -27,16 +26,13 @@ export class ParticipantContentCarouselPageComponent implements OnInit {
   contents: Content[];
   contentGroup: ContentGroup;
 
-  constructor(private contentService: ContentService,
-              private route: ActivatedRoute) {
+  constructor(private contentService: ContentService) {
   }
 
   ngOnInit() {
-    this.route.params.subscribe(params => {
       this.contentGroup = JSON.parse(sessionStorage.getItem('contentGroup'));
       this.contentService.getContentsByIds(this.contentGroup.contentIds).subscribe( contents => {
         this.contents = contents;
       });
-    });
   }
 }
-- 
GitLab