From e63479556c451003be5fbad94d8afce700b4aba5 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa <72977554+Cristhianzl@users.noreply.github.com> Date: Fri, 5 Jul 2024 13:57:20 -0300 Subject: [PATCH] fix: add click event on button to retry check connection to backend (#2558) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ♻️ (App.tsx): remove console.log statement from setRetry function 🐛 (fetchErrorComponent): add onClick handler to Retry button to ensure retry logic is executed --- src/frontend/src/App.tsx | 1 - src/frontend/src/components/fetchErrorComponent/index.tsx | 8 +++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/App.tsx b/src/frontend/src/App.tsx index a6fa14fd4..0a8583486 100644 --- a/src/frontend/src/App.tsx +++ b/src/frontend/src/App.tsx @@ -128,7 +128,6 @@ export default function App() { Object.values(healthData).some((value) => value !== "ok")) } setRetry={() => { - console.log("retrying"); refetch(); }} isLoadingHealth={fetchingHealth} diff --git a/src/frontend/src/components/fetchErrorComponent/index.tsx b/src/frontend/src/components/fetchErrorComponent/index.tsx index 5320e62fc..e58dc82ad 100644 --- a/src/frontend/src/components/fetchErrorComponent/index.tsx +++ b/src/frontend/src/components/fetchErrorComponent/index.tsx @@ -32,7 +32,13 @@ export default function FetchErrorComponent({ { + setRetry(); + }, + }} />