Skip to content
Snippets Groups Projects
Verified Commit d6a551f4 authored by Lukas Maximilian Kimpel's avatar Lukas Maximilian Kimpel
Browse files

Remove unneeded request

parent 757f3434
Branches
Tags
1 merge request!87participant home screen api
......@@ -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();
});
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment