Skip to content

Commit

Permalink
fix of #895
Browse files Browse the repository at this point in the history
  • Loading branch information
AJIXuMuK committed May 15, 2021
1 parent d955573 commit 0b83a56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/controls/sitePicker/SitePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ export const SitePicker: React.FunctionComponent<ISitePickerProps> = (props: Rea

return sites;
});
}, [initialSites]);

if (!allSites) {
setIsLoading(true);
}
}, [initialSites, allSites]);

React.useEffect(() => {
if (!context || !isLoading) {
Expand Down

0 comments on commit 0b83a56

Please sign in to comment.