From d6a551f4a1024f3a342fe9f4d99cda2d2f7bf1a3 Mon Sep 17 00:00:00 2001 From: Lukas Kimpel <lukas.kimpel@mni.thm.de> Date: Tue, 20 Mar 2018 11:56:19 +0100 Subject: [PATCH] Remove unneeded request --- src/app/room-creation/room-creation.component.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/app/room-creation/room-creation.component.ts b/src/app/room-creation/room-creation.component.ts index 308a0341c..01733d1da 100644 --- a/src/app/room-creation/room-creation.component.ts +++ b/src/app/room-creation/room-creation.component.ts @@ -46,14 +46,11 @@ export class RoomCreationComponent implements OnInit { name: longRoomName, abbreviation: shortRoomName, description: description - } as Room).subscribe(room => this.room = room); - this.roomService.getRoomById(this.roomId) - .subscribe(room => { - this.room = room; - this.notification.show(`Room '${this.room.name}' successfully created.`); - this.router.navigate([`/creator/room/${this.room.shortId}`]); - this.dialogRef.close(); - }); + } as Room).subscribe(room => { + this.room = room; + this.notification.show(`Room '${this.room.name}' successfully created.`); + this.router.navigate([`/creator/room/${this.room.shortId}`]); + this.dialogRef.close(); + }); } } - -- GitLab