Skip to content

Commit

Permalink
fix (DailyRounds): fixed redirection path of normal round (#2035)
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar authored Jan 25, 2022
1 parent 99bbd54 commit 4bb099a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/Components/Patient/DailyRounds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,15 @@ export const DailyRounds = (props: any) => {
Notification.Success({
msg: "Consultation Updates details updated successfully",
});
navigate(
`/facility/${facilityId}/patient/${patientId}/consultation/${consultationId}/daily_rounds/${res.data.external_id}/update`
);
if (state.form.rounds_type === "NORMAL") {
navigate(
`/facility/${facilityId}/patient/${patientId}/consultation/${consultationId}`
);
} else {
navigate(
`/facility/${facilityId}/patient/${patientId}/consultation/${consultationId}/daily_rounds/${res.data.external_id}/update`
);
}
} else {
Notification.Success({
msg: "Consultation Updates details created successfully",
Expand Down

0 comments on commit 4bb099a

Please sign in to comment.