Skip to content

Commit 394de18

Browse files
committed
fix of #895
1 parent caf2d16 commit 394de18

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.JSON

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"new": [],
77
"enhancements": [],
88
"fixes": [
9-
"Documentation for `RichText`: correct event handler name [#898](https://github.com/pnp/sp-dev-fx-controls-react/pull/898)",
9+
"Documentation for `RichText`: correct event handler name [#898](https://github.com/pnp/sp-dev-fx-controls-react/pull/898)"
1010
]
1111
},
1212
"contributions": [

src/controls/sitePicker/SitePicker.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export const SitePicker: React.FunctionComponent<ISitePickerProps> = (props: Rea
148148
key: s.url,
149149
text: s.title,
150150
data: s,
151-
selected: selectedSitesIds.indexOf(s.url) !== -1
151+
//selected: selectedSitesIds.indexOf(s.url) !== -1
152152
});
153153
});
154154
}
@@ -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)