Skip to content
Snippets Groups Projects
Commit 24758062 authored by Tom Käsler's avatar Tom Käsler
Browse files

Fix if statement for when comment extensions aren't available

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