Skip to content
Snippets Groups Projects
Commit 0d434c36 authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Merge branch 'fix-room-extension-error' into 'master'

Fix if statement for when comment extensions aren't available

See merge request swtp-2019/arsnova-lite!42
parents 55078ede 24758062
No related merge requests found
......@@ -73,7 +73,7 @@ export class CommentListComponent implements OnInit {
getCommentsCreator(): Comment[] {
let commentThreshold = -10;
if (this.room.extensions) {
if (this.room.extensions && this.room.extensions['comments']) {
commentThreshold = this.room.extensions['comments'].commentThreshold;
if (this.hideCommentsList) {
return this.filteredComments.filter( x => x.score >= commentThreshold );
......
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