Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asliayk committed Oct 11, 2024
1 parent 613e8d8 commit 72fefe2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export class AnswerPostCreateEditModalComponent extends PostingCreateEditModalDi
* resets the answer post content
*/
resetFormGroup(): void {
this.posting = this.posting || { content: '' };
this.formGroup = this.formBuilder.group({
// the pattern ensures that the content must include at least one non-whitespace character
content: [this.posting.content, [Validators.required, Validators.maxLength(this.maxContentLength), PostContentValidationPattern]],
Expand Down

0 comments on commit 72fefe2

Please sign in to comment.