We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc4bd0a commit 4e46258Copy full SHA for 4e46258
src/controls/sitePicker/SitePicker.tsx
@@ -132,7 +132,7 @@ export const SitePicker: React.FunctionComponent<ISitePickerProps> = (props: Rea
132
133
const result: IDropdownOption[] = [];
134
135
- if (allowSearch) {
+ if (allowSearch !== false) {
136
result.push({
137
key: 'search',
138
text: '',
@@ -222,7 +222,7 @@ export const SitePicker: React.FunctionComponent<ISitePickerProps> = (props: Rea
222
promise = getHubSites(context);
223
}
224
else {
225
- promise = getAllSites(context, mode === 'web', limitToCurrentSiteCollection);
+ promise = getAllSites(context, mode !== 'site', limitToCurrentSiteCollection);
226
227
228
promise.then(sites => {
0 commit comments