Skip to content

Commit ec1a671

Browse files
committed
include answer post
1 parent 4333d5a commit ec1a671

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/webapp/app/communication/post/post.component.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ export class PostComponent extends PostingDirective<Post> implements OnInit, OnC
138138
super();
139139
this.course = this.metisService.getCourse() ?? throwError('Course not found');
140140
effect(() => {
141-
this.hasOriginalPostBeenDeleted = this.forwardedPosts().length > 0 && this.forwardedPosts()[0] === undefined;
141+
const hasDeletedForwardedPost = this.forwardedPosts().length > 0 && this.forwardedPosts()[0] === undefined;
142+
const hasDeletedForwardedAnswerPost = this.forwardedAnswerPosts().length > 0 && this.forwardedAnswerPosts()[0] === undefined;
143+
this.hasOriginalPostBeenDeleted = hasDeletedForwardedAnswerPost || hasDeletedForwardedPost;
142144
});
143145
}
144146

0 commit comments

Comments
 (0)