Skip to content

Commit

Permalink
feat: redirect to questionnaire details page when questionnaire is saved
Browse files Browse the repository at this point in the history
  • Loading branch information
davdarras committed Jun 8, 2023
1 parent 3da625d commit 3af3baa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "public-enemy",
"version": "2.0.2",
"version": "2.0.3",
"description": "Check and test questionnaire models",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/ui/components/QuestionnaireEditForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3af3baa

Please sign in to comment.