App crash when form loaded in edit mode contains unanswered repeat group item #2685
Labels
good first issue
Good for newcomers
help wanted
Extra attention is needed
P1
High priority issue
type:bug
Something isn't working
Describe the bug
When a form containing a repeat group is saved without populating the items withing the repeat group, opening the form in edit mode results in an app crash.
The following exception is thrown: -
Component
SDC library
To Reproduce
Steps to reproduce the behavior:
"repeats": "true"
. The Client info repeat group contains thefirst
andfamily
name fields.+Add
button under theClient info
title i.e do not add thefirst
orfamily
name.Expected behavior
App should not crash when the form is opened in edit mode.
Screenshots
If applicable, add screenshots to help explain your problem.
Add patient form with the
Client Info
as a repeat group itemSmartphone (please complete the following information):
Additional context
It seems that the addMissingResponseItems function that is called in the QuestionnaireViewModel.init function does not handle repeat groups.
Would you like to work on the issue?
Please state if this issue should be assigned to you or who you think could help to solve this issue.
The text was updated successfully, but these errors were encountered: