Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to deselect the option under the attedance encounter #1231

Open
Dinesh2019 opened this issue Dec 19, 2023 · 2 comments
Open

Unable to deselect the option under the attedance encounter #1231

Dinesh2019 opened this issue Dec 19, 2023 · 2 comments
Labels

Comments

@Dinesh2019
Copy link

Dinesh2019 commented Dec 19, 2023

In the evening attendance form we select the individual and came to dashboard and again if we go to the encounter we unable to deselect or select the individual.

env:pre-release
env: prod
pre-release User : dinesh@mc
prod : dineshg@mobilecrechetrial

Steps to reproduce:
1.Login to the app
2.search any school going and select the evening attendance encounter
3.click on the do select the individual.
4. select all the checkboxes
5.Click back
6.Click on do again
7.Try to deselect one of the individual from special diet page
8. app crashes

Happens also when trying to edit a completed encounter. Similar issue happens when trying to select on edit flow.

Expected : user able to select or deselect the individual
Actual : User unable to select or deselect

Logs:

12-19 21:26:48.405  2866  2914 D ReactNativeJS: [9:26:48:405] [AttendanceFormElement::AC][Debug] Dispatching action: "EA.TOGGLE_MULTISELECT_ANSWER"
12-19 21:26:48.411  2866  2914 D ReactNativeJS: [9:26:48:411] [ErrorHandler][Debug] IsFatal=true TypeError: Cannot create property 'answerSource' on string '{"answer":["974ad500-5ddf-4599-b432-9857c5ff592e","3d828318-99bd-421b-b20d-296f5068b8ec"],"answerSource":"manual"}'
12-19 21:26:48.411  2866  2914 D ReactNativeJS: [9:26:48:411] [ErrorHandler][Debug] Cannot create property 'answerSource' on string '{"answer":["974ad500-5ddf-4599-b432-9857c5ff592e","3d828318-99bd-421b-b20d-296f5068b8ec"],"answerSource":"manual"}'
12-19 21:26:48.416  2866  2914 D ReactNativeJS: [9:26:48:416] [ErrorHandler][Debug] Creating frame array
12-19 21:26:48.416  2866  2914 D ReactNativeJS: [9:26:48:416] [ErrorHandler][Debug] Notifying Bugsnag TypeError: Fatal error: Cannot create property 'answerSource' on string '{"answer":["974ad500-5ddf-4599-b432-9857c5ff592e","3d828318-99bd-421b-b20d-296f5068b8ec"],"answerSource":"manual"}'
12-19 21:26:48.418  2866  2914 E ReactNativeJS: 'App', 'undefined, "renderError: Fatal error: Cannot create property \'answerSource\' on string \'{\\"answer\\":[\\"974ad500-5ddf-4599-b432-9857c5ff592e\\",\\"3d828318-99bd-421b-b20d-296f5068b8ec\\"],\\"answerSource\\":\\"manual\\"}\'\\nStacktrace:[{\\"columnNumber\\":849014,\\"lineNumber\\":1,\\"fileName\\":\\"address at index.android.bundle:1:849014\\",\\"functionName\\":\\"toggleCodedAnswer\\",\\"source\\":\\"    at toggleCodedAnswer (address at index.android.bundle:1:849014)\\"},{\\"columnNumber\\":851138,\\"lineNumber\\":1,\\"fileName\\":\\"address at index.android.bundle:1:851138\\",\\"functionName\\":\\"toggleMultiSelectAnswer\\",\\"source\\":\\"    at toggleMultiSelectAnswer (address at index.android.bundle:1:851138)\\"},{\\"columnNumber\\":3218235,\\"lineNumber\\":1,\\"fileName\\":\\"address at index.android.bundle:1:3218235\\",\\"functionName\\":\\"toggleMultiSelectAnswer\\",\\"source\\":\\"    at toggleMultiSelectAnswer (address at index.android.bundle:1:3218235)\\"},{\\"columnNumber\\":3243808,\\"lineNumber\\":1,\\"fileName\\":\\"address at index.android.bundle:1:3243808\\",\\"functionName\\":\\"anonymous\\",\\"source\\":\\"    at anonymous (address at index.android.bundle:1:3243808)\\"},{\\"columnNumber\\":3383298,\\"lineNumber\\":1,\\"fileName\\":\\"address at index.android.bundle:1:3383298\\",\\"functionName\\":\\"combination\\",\\"source\\":\\"
Screen.Recording.2023-12-20.at.11.43.54.AM.mov
Screen.Recording.2023-12-19.at.11.38.16.AM.mov
@mahalakshme
Copy link
Contributor

@Dinesh2019 what are the login details? is it happening in normal flow without pressing back as well? is it currently happening in prod?

@Dinesh2019
Copy link
Author

@Maha I have updated the user detail and this already happening in prod it happens when we press back

@mahalakshme mahalakshme moved this from New Issues to Focus Items in Avni Product Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Focus Items
Development

No branches or pull requests

2 participants