diff --git a/package.json b/package.json index 157f65d..b88bb14 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "public-enemy", - "version": "2.0.2", + "version": "2.0.3", "description": "Check and test questionnaire models", "repository": { "type": "git", diff --git a/src/ui/components/QuestionnaireEditForm.tsx b/src/ui/components/QuestionnaireEditForm.tsx index 3e9f9a1..07fe1ba 100644 --- a/src/ui/components/QuestionnaireEditForm.tsx +++ b/src/ui/components/QuestionnaireEditForm.tsx @@ -144,11 +144,11 @@ export const QuestionnaireEditForm = memo( const saveAction = () => { props.saveQuestionnaire(questionnaire, { - onSuccess: () => { + onSuccess: (questionnaire) => { notifier.success( intl.formatMessage({ id: "questionnaire_edit_success" }) ); - navigate("/questionnaires"); + navigate(`/questionnaires/${questionnaire.id}`); }, onSettled: () => { closeConfirmationDialog();