From 3f97866398070cd4b362a4abcdf833960aaad7ef Mon Sep 17 00:00:00 2001 From: debapi94 <94008895+debapi94@users.noreply.github.com> Date: Wed, 17 Nov 2021 18:27:23 +0000 Subject: [PATCH] Use API provided domain rather than recalculate from taskToDomain (#2584) --- ui/src/pages/execution/Execution.jsx | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/ui/src/pages/execution/Execution.jsx b/ui/src/pages/execution/Execution.jsx index 566d9d614e..4c71615696 100644 --- a/ui/src/pages/execution/Execution.jsx +++ b/ui/src/pages/execution/Execution.jsx @@ -223,22 +223,7 @@ export default function Execution() { }; const handleSelectedTask = (task) => { - if (task) { - const { taskToDomain } = execution; - let domain; - if (taskToDomain["*"]) { - domain = taskToDomain["*"]; - } else if (task.taskType) { - domain = taskToDomain[task.taskType]; - } - - setSelectedTask({ - ...task, - domain: domain, - }); - } else { - setSelectedTask(null); - } + setSelectedTask(task); }; useEffect(() => {