Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

feat(patients): adds ability to view patient #1691

Merged
merged 3 commits into from
Jan 2, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat(patients): fix routing after successfully creating new patient
  • Loading branch information
jackcmeyer committed Jan 1, 2020
commit d23f860ce7e71cf892e7584e2eef6de0d4c79a70
2 changes: 1 addition & 1 deletion src/patients/patients-slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const createPatient = (patient: Patient, history: any): AppThunk => async
dispatch(createPatientStart())
const newPatient = await PatientRepository.save(patient)
dispatch(createPatientSuccess())
history.push(`patients/${newPatient.id}`)
history.push(`/patients/${newPatient.id}`)
} catch (error) {
console.log(error)
}
Expand Down