From 0b83a56b8567d0d65233e41edfb051e990ff9cc5 Mon Sep 17 00:00:00 2001 From: Alex Terentiev Date: Fri, 14 May 2021 17:10:34 -0700 Subject: [PATCH] fix of #895 --- src/controls/sitePicker/SitePicker.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/controls/sitePicker/SitePicker.tsx b/src/controls/sitePicker/SitePicker.tsx index 265eaccae..1089f1105 100644 --- a/src/controls/sitePicker/SitePicker.tsx +++ b/src/controls/sitePicker/SitePicker.tsx @@ -207,7 +207,11 @@ export const SitePicker: React.FunctionComponent = (props: Rea return sites; }); - }, [initialSites]); + + if (!allSites) { + setIsLoading(true); + } + }, [initialSites, allSites]); React.useEffect(() => { if (!context || !isLoading) {