update comments

This commit is contained in:
_Bastler 2021-10-04 14:14:30 +02:00
parent 1f427fd67e
commit 4251f08b11

View File

@ -24,11 +24,11 @@ export class UiComments implements OnInit {
refresh(): void { refresh(): void {
if (this.parent) { if (this.parent) {
this.commentService.getParentPages(this.target, this.parent, 0 , 2).subscribe((data) => { this.commentService.getParent(this.target, this.parent).subscribe((data) => {
this.comments = data; this.comments = data;
}) })
} else { } else {
this.commentService.getPages(this.target, 0, 2).subscribe((data) => { this.commentService.get(this.target).subscribe((data) => {
this.comments = data; this.comments = data;
}) })
} }