Missed cdref.

This commit is contained in:
Joseph Milazzo 2025-06-22 10:19:54 -05:00
parent ff8cba71f5
commit 6ffb9f7230

View file

@ -61,7 +61,8 @@ export class ExternalRatingComponent implements OnInit {
ngOnInit() { ngOnInit() {
this.reviewService.overallRating(this.seriesId, this.chapterId).subscribe(r => { this.reviewService.overallRating(this.seriesId, this.chapterId).subscribe(r => {
this.overallRating = r.averageScore; this.overallRating = r.averageScore;
}); this.cdRef.markForCheck();
});
} }
updateRating(rating: number) { updateRating(rating: number) {
@ -92,6 +93,4 @@ export class ExternalRatingComponent implements OnInit {
return ''; return '';
} }
protected readonly RatingAuthority = RatingAuthority;
} }