File tree Expand file tree Collapse file tree 3 files changed +7
-16
lines changed Expand file tree Collapse file tree 3 files changed +7
-16
lines changed Original file line number Diff line number Diff line change 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" : " ." ,
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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" ) ;
You can’t perform that action at this time.
0 commit comments