Commit 228363bb authored by Tom Käsler's avatar Tom Käsler

Fix errors in edit room dialog

Fix null check
Remove console.log stmt
parent 41fc66a5
Pipeline #27059 passed with stages
in 6 minutes and 51 seconds
......@@ -33,12 +33,15 @@ export class RoomEditComponent implements OnInit {
}
ngOnInit() {
if (this.editRoom.extensions['comments'].commentThreshold != null) {
if (
this.editRoom.extensions &&
this.editRoom.extensions['comments'] &&
this.editRoom.extensions['comments'].commentThreshold != null
) {
this.commentThreshold = this.editRoom.extensions['comments'].commentThreshold;
} else {
this.commentThreshold = -10;
}
console.log(this.editRoom);
}
onSliderChange(event: any) {
......
Markdown is supported
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