Skip to content

Commit b028c6e

Browse files
commented code removed
1 parent 16cbd9a commit b028c6e

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/frontend/src/components/content/TaskDetails.tsx

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,6 @@ const TaskDetails: React.FC<TaskDetailsProps> = ({
6969
...step,
7070
human_approval_status: "accepted" as HumanFeedbackStatus,
7171
};
72-
73-
// Create a new array with the updated step
74-
const updatedSteps = steps.map((s) =>
75-
s.id === step.id ? updatedStep : s
76-
);
77-
78-
// Update local state to reflect changes immediately
79-
80-
//setSteps(updatedSteps);
81-
//setCompletedCount(completedCount + 1); // Increment completed count
82-
//setProgress((completedCount + 1) / total); // Update progress
8372
// Then call the main approval function
8473
// This could be your existing OnApproveStep function that handles API calls, etc.
8574
await OnApproveStep(updatedStep, total, completedCount + 1, true);
@@ -98,15 +87,6 @@ const TaskDetails: React.FC<TaskDetailsProps> = ({
9887
human_approval_status: "rejected" as HumanFeedbackStatus,
9988
};
10089

101-
// Create a new array with the updated step
102-
const updatedSteps = steps.map((s) =>
103-
s.id === step.id ? updatedStep : s
104-
);
105-
106-
// Update local state to reflect changes immediately
107-
//setSteps(updatedSteps);
108-
//setCompletedCount(completedCount + 1); // Increment completed count
109-
//setProgress((completedCount + 1) / total); // Update progress
11090
// Then call the main rejection function
11191
// This could be your existing OnRejectStep function that handles API calls, etc.
11292
await OnApproveStep(updatedStep, total, completedCount + 1, false);

0 commit comments

Comments
 (0)