Open kennsippell opened 1 month ago
It's possible from user reports that they experience this "Error loading form" when this triggers.
Another stack
"Uncaught (in promise): TypeError: Cannot read properties of undefined (reading '_id')
TypeError: Cannot read properties of undefined (reading '_id')
at https://nairobi-echis.health.go.ke/main.js?_sw-precache=90acff8d536409fe701a30df7bdac6c7:1:1101774
at Generator.next (<anonymous>)
at c$ (https://nairobi-echis.health.go.ke/main.js?_sw-precache=90acff8d536409fe701a30df7bdac6c7:1:506804)
at h (https://nairobi-echis.health.go.ke/main.js?_sw-precache=90acff8d536409fe701a30df7bdac6c7:1:507007)
at https://nairobi-echis.health.go.ke/main.js?_sw-precache=90acff8d536409fe701a30df7bdac6c7:1:507068
at d (https://nairobi-echis.health.go.ke/polyfills.js?_sw-precache=edc39369e9333bcb01fe3d162d9ada63:1:23310)
at https://nairobi-echis.health.go.ke/main.js?_sw-precache=90acff8d536409fe701a30df7bdac6c7:1:506948
at r.updateFastActions (https://nairobi-echis.health.go.ke/main.js?_sw-precache=90acff8d536409fe701a30df7bdac6c7:1:1101882)
at Object.next (https://nairobi-echis.health.go.ke/main.js?_sw-precache=90acff8d536409fe701a30df7bdac6c7:1:1099592)
at G.next (https://nairobi-echis.health.go.ke/main.js?_sw-precache=90acff8d536409fe701a30df7bdac6c7:1:3451)"
Would be great to know of workarounds for this if there is one... A lot of complaints in our eCHIS support channels for this "error loading forms". Blocking some CHPs from working.
@kennsippell can you please attach the task form and the report form triggering these errors? Or a snapshot of those forms if there are some privacy concerns
Oops. Found https://github.com/medic/cht-core/issues/9557 which is a better explanation for the error loading form. I dunno if the crash in this issue has any user-facing symptoms. My mistake!
Describe the bug
To Reproduce Production data
Expected behavior Don't crash
Logs
Environment
Additional context This is in webapp/src/ts/modules/reports/reports-content.component.ts