Skip to content

Commit 4e46258

Browse files
committed
SitePicker: correct defaults for allowSearch and mode
1 parent fc4bd0a commit 4e46258

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/controls/sitePicker/SitePicker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export const SitePicker: React.FunctionComponent<ISitePickerProps> = (props: Rea
132132

133133
const result: IDropdownOption[] = [];
134134

135-
if (allowSearch) {
135+
if (allowSearch !== false) {
136136
result.push({
137137
key: 'search',
138138
text: '',
@@ -222,7 +222,7 @@ export const SitePicker: React.FunctionComponent<ISitePickerProps> = (props: Rea
222222
promise = getHubSites(context);
223223
}
224224
else {
225-
promise = getAllSites(context, mode === 'web', limitToCurrentSiteCollection);
225+
promise = getAllSites(context, mode !== 'site', limitToCurrentSiteCollection);
226226
}
227227

228228
promise.then(sites => {

0 commit comments

Comments
 (0)