Skip to content

Commit a2a60a0

Browse files
authored
Merge pull request microsoft#274 from microsoft/ui-ux-refresh-bug-fixes
fix: Bug Fix #19398, #19280
2 parents e598fda + 05c932d commit a2a60a0

File tree

3 files changed

+7
-16
lines changed

3 files changed

+7
-16
lines changed

src/frontend_react/public/manifest.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
{
2-
"short_name": "Multi-Agent-Custom-Automation-Engine",
2+
"short_name": "MACAE",
33
"name": "Multi-Agent-Custom-Automation-Engine",
44
"icons": [
55
{
66
"src": "favicon.ico",
77
"sizes": "64x64 32x32 24x24 16x16",
88
"type": "image/x-icon"
9-
},
10-
{
11-
"src": "logo192.png",
12-
"type": "image/png",
13-
"sizes": "192x192"
14-
},
15-
{
16-
"src": "logo512.png",
17-
"type": "image/png",
18-
"sizes": "512x512"
199
}
2010
],
2111
"start_url": ".",

src/frontend_react/src/api/apiService.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export class APIService {
160160

161161
if (useCache) {
162162
const cachedPlan = this._cache.get<{ plan_with_steps: PlanWithSteps; messages: PlanMessage[] }>(cacheKey);
163-
if (cachedPlan) return cachedPlan;
163+
//if (cachedPlan) return cachedPlan;
164164

165165
return this._requestTracker.trackRequest(cacheKey, fetcher);
166166
}

src/frontend_react/src/pages/PlanPage.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,18 @@ const PlanPage: React.FC = () => {
123123
let id = showToast(toastMessage, "progress");
124124
setSubmitting(true);
125125
try {
126-
await PlanDataService.stepStatus(step, approve);
126+
let approveRejectDetails=await PlanDataService.stepStatus(step, approve);
127127
dismissToast(id);
128128
showToast(`Step ${approve ? "approved" : "rejected"} successfully`, "success");
129-
130-
await loadPlanData(false);
129+
if (approveRejectDetails && Object.keys(approveRejectDetails).length > 0) {
130+
await loadPlanData(false);
131+
}
131132
if (total === completed) {
132-
await loadPlanData(false); // second call hack?
133133
setReloadLeftList(true);
134134
} else {
135135
setReloadLeftList(false);
136136
}
137+
137138
} catch (error) {
138139
dismissToast(id);
139140
showToast(`Failed to ${approve ? "approve" : "reject"} step`, "error");

0 commit comments

Comments
 (0)