if (this.parentComment) {
const mentions = this.parentComments
- .filter(c => c.account.id !== this.user.account.id) // Don't add mention of ourselves
+ .filter(c => c.account && c.account.id !== this.user.account.id) // Don't add mention of ourselves
.map(c => '@' + c.by)
const mentionsSet = new Set(mentions)
cancelCommentReply () {
this.cancel.emit(null)
+ this.form.value['text'] = this.textareaElement.nativeElement.value = ''
}
private addCommentReply (commentCreate: VideoCommentCreate) {