Skip to content

Commit

Permalink
Merge pull request #2367 from arun-s-aot/feature/FWF-3882-backward-co…
Browse files Browse the repository at this point in the history
…mpatability-changes

[BUGFIX] Fixed routing issue from form edit to listing
  • Loading branch information
arun-s-aot authored Nov 21, 2024
2 parents 734c0b4 + e5cdc0b commit bc0f74a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions forms-flow-web/src/components/Form/EditForm/FormEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ const EditComponent = () => {
};

const backToForm = () => {
dispatch(push(`${redirectUrl}form/`));
dispatch(push(`${redirectUrl}formflow`));
};
const closeHistoryModal = () => {
setShowHistoryModal(false);
Expand Down Expand Up @@ -778,7 +778,7 @@ const EditComponent = () => {
try {
await unPublish(processListData.id);
setIsPublished(false);
dispatch(push(`${redirectUrl}form`));
dispatch(push(`${redirectUrl}formflow`));
} catch (err) {
const error = err.response?.data || err.message;
dispatch(setFormFailureErrorData("form", error));
Expand All @@ -796,7 +796,7 @@ const EditComponent = () => {
const deleteModal = () => {
if (!applicationCount) {
dispatch(deleteForm("form", formId));
dispatch(push(`${redirectUrl}form`));
dispatch(push(`${redirectUrl}formflow`));
}

if (processListData.id) {
Expand Down

0 comments on commit bc0f74a

Please sign in to comment.