From c8c2dd97d3408426323fbfe7688cfbb6806f906b Mon Sep 17 00:00:00 2001 From: RachelElysia <71795832+RachelElysia@users.noreply.github.com> Date: Tue, 2 Aug 2022 10:09:59 -0400 Subject: [PATCH] Remove retries for Welcome to Fleet host (#6999) --- changes/issue-6965-no-retry-host-homepage | 1 + frontend/pages/Homepage/cards/WelcomeHost/WelcomeHost.tsx | 1 + 2 files changed, 2 insertions(+) create mode 100644 changes/issue-6965-no-retry-host-homepage diff --git a/changes/issue-6965-no-retry-host-homepage b/changes/issue-6965-no-retry-host-homepage new file mode 100644 index 000000000..b020ba599 --- /dev/null +++ b/changes/issue-6965-no-retry-host-homepage @@ -0,0 +1 @@ +* Removes retries for API request for host on Welcome to Fleet card \ No newline at end of file diff --git a/frontend/pages/Homepage/cards/WelcomeHost/WelcomeHost.tsx b/frontend/pages/Homepage/cards/WelcomeHost/WelcomeHost.tsx index aa34c46da..925794546 100644 --- a/frontend/pages/Homepage/cards/WelcomeHost/WelcomeHost.tsx +++ b/frontend/pages/Homepage/cards/WelcomeHost/WelcomeHost.tsx @@ -57,6 +57,7 @@ const WelcomeHost = ({ ["host"], () => hostAPI.loadHostDetails(HOST_ID), { + retry: false, select: (data: IHostResponse) => data.host, onSuccess: (returnedHost) => { setShowRefetchLoadingSpinner(returnedHost.refetch_requested);