diff --git a/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx b/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx index 1885e6d5..9c1fa8cf 100644 --- a/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx @@ -132,20 +132,11 @@ export default function ProcessModelShow() { const processInstanceResultTag = () => { if (processModel && processInstanceResult) { - let takeMeToMyTaskBlurb = null; // FIXME: ensure that the task is actually for the current user as well const processInstanceId = (processInstanceResult as any).id; const nextTask = (processInstanceResult as any).next_task; if (nextTask && nextTask.state === 'READY') { - takeMeToMyTaskBlurb = ( - - You have a task to complete. Go to{' '} - - my task - - . - - ); + navigate(`/tasks/${processInstanceId}/${nextTask.id}`); } return (
@@ -157,7 +148,7 @@ export default function ProcessModelShow() { > view - ). {takeMeToMyTaskBlurb} + ).

);