fix: add click event on button to retry check connection to backend (#2558)
♻️ (App.tsx): remove console.log statement from setRetry function 🐛 (fetchErrorComponent): add onClick handler to Retry button to ensure retry logic is executed
This commit is contained in:
parent
eb3420523e
commit
e63479556c
2 changed files with 7 additions and 2 deletions
|
|
@ -128,7 +128,6 @@ export default function App() {
|
||||||
Object.values(healthData).some((value) => value !== "ok"))
|
Object.values(healthData).some((value) => value !== "ok"))
|
||||||
}
|
}
|
||||||
setRetry={() => {
|
setRetry={() => {
|
||||||
console.log("retrying");
|
|
||||||
refetch();
|
refetch();
|
||||||
}}
|
}}
|
||||||
isLoadingHealth={fetchingHealth}
|
isLoadingHealth={fetchingHealth}
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,13 @@ export default function FetchErrorComponent({
|
||||||
</BaseModal.Content>
|
</BaseModal.Content>
|
||||||
|
|
||||||
<BaseModal.Footer
|
<BaseModal.Footer
|
||||||
submit={{ label: "Retry", loading: isLoadingHealth }}
|
submit={{
|
||||||
|
label: "Retry",
|
||||||
|
loading: isLoadingHealth,
|
||||||
|
onClick: () => {
|
||||||
|
setRetry();
|
||||||
|
},
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</BaseModal>
|
</BaseModal>
|
||||||
</>
|
</>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue