Skip to content

Commit

Permalink
fix: explicitly type formcontrol when adding multiple choice field
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesvedder committed Jun 18, 2024
1 parent 761c367 commit 7fc8deb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class QuestionFormViewModel extends ManagedFormViewModel<QuestionFormData>
final int customOptionsMax = 10;
final int customOptionsInitial = 2;

FormArray<dynamic> get answerOptionsArray => {
FormArray get answerOptionsArray => {
SurveyQuestionType.bool: boolResponseOptionsArray,
SurveyQuestionType.choice: choiceResponseOptionsArray,
SurveyQuestionType.scale: _scaleResponseOptionsArray,
Expand Down Expand Up @@ -645,7 +645,7 @@ class QuestionFormViewModel extends ManagedFormViewModel<QuestionFormData>

@override
void onNewItem() {
answerOptionsArray.add(FormControl());
answerOptionsArray.add(FormControl<String>());
}

@override
Expand Down

0 comments on commit 7fc8deb

Please sign in to comment.