Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Use API provided domain rather than recalculate from taskToDomain (#2584
Browse files Browse the repository at this point in the history
)
  • Loading branch information
debapi94 authored Nov 17, 2021
1 parent cb61caa commit 3f97866
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions ui/src/pages/execution/Execution.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 3f97866

Please sign in to comment.