Skip to content

Commit 117d0d8

Browse files
Cristhianzlogabrielluiz
authored andcommitted
fix: add click event on button to retry check connection to backend (langflow-ai#2558)
♻️ (App.tsx): remove console.log statement from setRetry function 🐛 (fetchErrorComponent): add onClick handler to Retry button to ensure retry logic is executed
1 parent 504b6f7 commit 117d0d8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/frontend/src/App.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ export default function App() {
128128
Object.values(healthData).some((value) => value !== "ok"))
129129
}
130130
setRetry={() => {
131-
console.log("retrying");
132131
refetch();
133132
}}
134133
isLoadingHealth={fetchingHealth}

src/frontend/src/components/fetchErrorComponent/index.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@ export default function FetchErrorComponent({
3232
</BaseModal.Content>
3333

3434
<BaseModal.Footer
35-
submit={{ label: "Retry", loading: isLoadingHealth }}
35+
submit={{
36+
label: "Retry",
37+
loading: isLoadingHealth,
38+
onClick: () => {
39+
setRetry();
40+
},
41+
}}
3642
/>
3743
</BaseModal>
3844
</>

0 commit comments

Comments
 (0)