medic / angular10-migration

0 stars 0 forks source link

Contact-Content contact-summary never receiving the targetDoc #129

Open dianabarsan opened 3 years ago

dianabarsan commented 3 years ago

We pass the targetDoc to contact-summary to provide the ability to display target progress for supervisors. This is the issue that describes it:

https://github.com/medic/cht-core/issues/4839

This is the relevant code in master, where we pass the targetDoc to contactSummary when displaying the contact page:

https://github.com/medic/cht-core/blob/master/webapp/src/js/actions/contacts.js#L197

However, in our current migration codebase, our target doc is never passed to Contact-Summary. It's loaded, but never passed:

https://github.com/medic/cht-core/blob/4750-angular-10-take-2/webapp/src/ts/effects/contacts.effects.ts#L133