From 5bc049c5bcbb550187c813b363210b56819be408 Mon Sep 17 00:00:00 2001 From: Timmy Luong Date: Thu, 11 Jun 2020 14:38:18 -0700 Subject: [PATCH] fix(ui): reset the loading spinner timer on error --- ui/src/shared/components/ViewLoadingSpinner.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/shared/components/ViewLoadingSpinner.tsx b/ui/src/shared/components/ViewLoadingSpinner.tsx index d4df1796137..c55bfec5c71 100644 --- a/ui/src/shared/components/ViewLoadingSpinner.tsx +++ b/ui/src/shared/components/ViewLoadingSpinner.tsx @@ -27,7 +27,7 @@ const ViewLoadingSpinner: FunctionComponent = ({loading}) => { } useEffect(() => { - if (loading === RemoteDataState.Done) { + if (loading === RemoteDataState.Done || RemoteDataState.Error) { resetTimer() }