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 caf2d16 commit 394de18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.JSON
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"new": [],
"enhancements": [],
"fixes": [
"Documentation for `RichText`: correct event handler name [#898](https://github.com/pnp/sp-dev-fx-controls-react/pull/898)",
"Documentation for `RichText`: correct event handler name [#898](https://github.com/pnp/sp-dev-fx-controls-react/pull/898)"
]
},
"contributions": [
Expand Down
8 changes: 6 additions & 2 deletions src/controls/sitePicker/SitePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const SitePicker: React.FunctionComponent<ISitePickerProps> = (props: Rea
key: s.url,
text: s.title,
data: s,
selected: selectedSitesIds.indexOf(s.url) !== -1
//selected: selectedSitesIds.indexOf(s.url) !== -1
});
});
}
Expand Down 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 394de18

Please sign in to comment.