From 0e90e457a25464c9cc0106bd3fd61c2fd5c7a6ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Mon, 19 Aug 2019 18:43:41 +0200 Subject: [PATCH] Adjust comment-list components to updated comment model --- .../moderator-comment-list/moderator-comment-list.component.ts | 2 +- .../components/shared/comment-list/comment-list.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/moderator/moderator-comment-list/moderator-comment-list.component.ts b/src/app/components/moderator/moderator-comment-list/moderator-comment-list.component.ts index 969a34251..bcd88439f 100644 --- a/src/app/components/moderator/moderator-comment-list/moderator-comment-list.component.ts +++ b/src/app/components/moderator/moderator-comment-list/moderator-comment-list.component.ts @@ -142,7 +142,7 @@ export class ModeratorCommentListComponent implements OnInit { this.comments[i].read = <boolean>value; break; case this.correct: - this.comments[i].correct = <boolean>value; + this.comments[i].correct = <number>value; break; case this.favorite: this.comments[i].favorite = <boolean>value; diff --git a/src/app/components/shared/comment-list/comment-list.component.ts b/src/app/components/shared/comment-list/comment-list.component.ts index 39db2a14e..f8e3c7fc0 100644 --- a/src/app/components/shared/comment-list/comment-list.component.ts +++ b/src/app/components/shared/comment-list/comment-list.component.ts @@ -168,7 +168,7 @@ export class CommentListComponent implements OnInit { this.comments[i].read = <boolean>value; break; case this.correct: - this.comments[i].correct = <boolean>value; + this.comments[i].correct = <number>value; break; case this.favorite: this.comments[i].favorite = <boolean>value; -- GitLab