Skip to content

Commit 9e09257

Browse files
committed
partial fix for final call
1 parent 98d3e2a commit 9e09257

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/frontend_react/src/pages/PlanPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,14 @@ const PlanPage: React.FC = () => {
126126
await PlanDataService.stepStatus(step, approve);
127127
dismissToast(id);
128128
showToast(`Step ${approve ? "approved" : "rejected"} successfully`, "success");
129+
130+
await loadPlanData(false);
129131
if (total === completed) {
132+
await loadPlanData(false); // second call hack?
130133
setReloadLeftList(true);
131134
} else {
132135
setReloadLeftList(false);
133136
}
134-
await loadPlanData(false);
135137
} catch (error) {
136138
dismissToast(id);
137139
showToast(`Failed to ${approve ? "approve" : "reject"} step`, "error");

0 commit comments

Comments
 (0)