Skip to content

Commit

Permalink
fix: Process without pending task should redirect to request
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Quelca committed Aug 21, 2024
1 parent e83b286 commit b13f7cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/task.vue
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,7 @@ export default {
break;
default:
console.warn('redirect', data);
window.location.href = `/requests/${this.requestId}`;
}
}
);
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/specs/Task.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ describe("Task component", () => {
}
);

cy.socketEvent("ProcessMaker\\Events\\ProcessUpdated", {
cy.socketEvent("ProcessMaker\\Events\\RedirectTo", {
requestId: 1,
event: "ACTIVITY_COMPLETED"
});
Expand Down

0 comments on commit b13f7cb

Please sign in to comment.