Skip to content

Commit

Permalink
fix: do not redirect to homepae on error
Browse files Browse the repository at this point in the history
  • Loading branch information
9sneha-n committed Feb 4, 2025
1 parent 79d7804 commit ac25871
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/webapp/components/survey/SurveyForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,6 @@ export const SurveyForm: React.FC<SurveyFormProps> = props => {
resetSaveActionOutcome();
setRefreshQuestionnaire({});
}

//If error fetching survey, redirect to homepage.
if (error) {
// history.push(`/`);
}
}, [
error,
saveCompleteState,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export const useTreatmentIndicationLink = (
setTreatmentOptions(prevTreatmeantOptions => {
return prevTreatmeantOptions?.filter(option => option.code !== stageCode);
});

} else if (stageCode === PPS_PATIENT_TRACKER_INDICATION_STAGE_ID) {
setIndicationOptions(prevIndicationOptions => {
return prevIndicationOptions?.filter(option => option.code !== stageCode);
Expand Down

0 comments on commit ac25871

Please sign in to comment.