Skip to content

Commit 0b83a56

Browse files
committed
fix of #895
1 parent d955573 commit 0b83a56

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/controls/sitePicker/SitePicker.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,11 @@ export const SitePicker: React.FunctionComponent<ISitePickerProps> = (props: Rea
207207

208208
return sites;
209209
});
210-
}, [initialSites]);
210+
211+
if (!allSites) {
212+
setIsLoading(true);
213+
}
214+
}, [initialSites, allSites]);
211215

212216
React.useEffect(() => {
213217
if (!context || !isLoading) {

0 commit comments

Comments
 (0)