Skip to content

Commit 3daeac4

Browse files
committed
Changelog updates + small bug fix
1 parent deb3fb0 commit 3daeac4

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

CHANGELOG.JSON

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"new": [],
77
"enhancements": [
88
"`PeoplePicker`: added functionality to initialize the control with person(s) or group(s) [#98](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/98)",
9+
"`PeoplePicker`: support for searching on contains [#93](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/93)",
10+
"`PeoplePicker`: find user based on email address [#95](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/95)",
911
"Bundle size: statically reference Office UI Fabric components in the FieldRenderer controls [#107](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/107)"
1012
],
1113
"fixes": [

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
**Enhancements**
66

77
- `PeoplePicker`: added functionality to initialize the control with person(s) or group(s) [#98](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/98)
8+
- `PeoplePicker`: support for searching on contains [#93](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/93)
9+
- `PeoplePicker`: find user based on email address [#95](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/95)
810
- Bundle size: statically reference Office UI Fabric components in the FieldRenderer controls [#107](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/107)
911

1012
**Fixes**

docs/documentation/docs/about/release-notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
**Enhancements**
66

77
- `PeoplePicker`: added functionality to initialize the control with person(s) or group(s) [#98](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/98)
8+
- `PeoplePicker`: support for searching on contains [#93](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/93)
9+
- `PeoplePicker`: find user based on email address [#95](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/95)
810
- Bundle size: statically reference Office UI Fabric components in the FieldRenderer controls [#107](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/107)
911

1012
**Fixes**

src/controls/peoplepicker/PeoplePickerComponent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export class PeoplePicker extends React.Component<IPeoplePickerProps, IPeoplePic
171171
// Set Default selected persons
172172
let defaultUsers : any = [];
173173
let defaultPeopleList: IPersonaWithMenu[] = [];
174-
if (this.props.defaultSelectedUsers !== null) {
174+
if (this.props.defaultSelectedUsers) {
175175
defaultUsers = this.getDefaultUsers(userValuesArray, this.props.defaultSelectedUsers);
176176
for (const persona of defaultUsers) {
177177
let selectedPeople: IPersonaWithMenu = {};
@@ -197,7 +197,7 @@ export class PeoplePicker extends React.Component<IPeoplePickerProps, IPeoplePic
197197
});
198198
}
199199
} catch (e) {
200-
console.error("Error occured while fetching the users and setting selected users.", e);
200+
console.error("Error occured while fetching the users and setting selected users.");
201201
}
202202
}
203203

0 commit comments

Comments
 (0)