Skip to content

Commit ef2285e

Browse files
committed
MOBILE-4842 forum: Fix non required viewChild error
1 parent 588dc7d commit ef2285e

File tree

1 file changed

+1
-1
lines changed
  • src/addons/mod/forum/components/post

1 file changed

+1
-1
lines changed

src/addons/mod/forum/components/post/post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class AddonModForumPostComponent implements OnInit, OnDestroy, OnChanges
102102
@Input({ transform: toBoolean }) highlight = false;
103103
@Output() onPostChange: EventEmitter<void> = new EventEmitter<void>(); // Event emitted when a reply is posted or modified.
104104

105-
readonly formElement = viewChild.required<ElementRef>('replyFormEl');
105+
readonly formElement = viewChild<ElementRef>('replyFormEl');
106106

107107
messageControl = new FormControl<string | null>(null);
108108

0 commit comments

Comments
 (0)