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

Fix delete function

parent 3df3d139
Branches
Tags
No related merge requests found
...@@ -140,6 +140,13 @@ export class CommentListComponent implements OnInit { ...@@ -140,6 +140,13 @@ export class CommentListComponent implements OnInit {
} }
} }
break; break;
case 'CommentDeleted':
for (let i = 0; i < this.comments.length; i++) {
this.comments = this.comments.filter(function (el) {
return el.id !== payload.id;
});
}
break;
} }
} }
......
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