From 678eaa4c72649b0e9f1c7f5d5821b4583d19b298 Mon Sep 17 00:00:00 2001 From: Xavier Basset Date: Wed, 31 Jul 2024 14:38:39 +0200 Subject: [PATCH] bug: fix nav tab on workflow when previously executed go to result --- webapp/modules/Tasks/components/TaskExecutionDetail/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/modules/Tasks/components/TaskExecutionDetail/index.tsx b/webapp/modules/Tasks/components/TaskExecutionDetail/index.tsx index 637893c7..dfdf6ada 100644 --- a/webapp/modules/Tasks/components/TaskExecutionDetail/index.tsx +++ b/webapp/modules/Tasks/components/TaskExecutionDetail/index.tsx @@ -197,7 +197,7 @@ const TaskExecutionDetail = () => { if (currentTask?.task_type !== "workflow") { setSelectedTab("result"); } else { - if (editorDetails.producedTextPk) { + if (currentTask?.produced_text_pk) { setSelectedTab("result"); } else { setSelectedTab("process"); @@ -495,4 +495,4 @@ const TaskExecutionDetail = () => { ); }; -export default TaskExecutionDetail; \ No newline at end of file +export default TaskExecutionDetail;