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

Fix: Breadcrumbs redirection to patient edit consultation form #8985

Merged
6 changes: 5 additions & 1 deletion src/components/Patient/PatientConsentRecords.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ export default function PatientConsentRecords(props: {
crumbsReplacements={{
[facilityId]: { name: patient?.facility_object?.name },
[patientId]: { name: patient?.name },
consultation: {
name: "Consultation",
uri: `/facility/${facilityId}/patient/${patientId}/consultation/${consultationId}/update`,
shauryag2002 marked this conversation as resolved.
Show resolved Hide resolved
},
[consultationId]: {
name:
patient?.last_consultation?.suggestion === "A"
Expand All @@ -116,7 +120,7 @@ export default function PatientConsentRecords(props: {
: patient?.last_consultation?.suggestion_text,
},
}}
backUrl={`/facility/${facilityId}/patient/${patientId}/consultation/${consultationId}/`}
backUrl={`/facility/${facilityId}/patient/${patientId}/consultation/${consultationId}/update`}
shauryag2002 marked this conversation as resolved.
Show resolved Hide resolved
>
{fileUpload.Dialogues}
{fileManager.Dialogues}
Expand Down
Loading