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

Commit

Permalink
feat(patients): fix routing after successfully creating new patient
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmeyer committed Jan 1, 2020
1 parent 7c260b4 commit d23f860
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit d23f860

Please sign in to comment.