You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After selecting a few people from WebPart properties pane some of them are not retrieved back although they are displayed correctly in the picker control.
Found bugged line (266 in PropertyFieldPeoplePickerHost.tsx) var index: number = this.resultsPersonas.indexOf(selectedItems[selectedItems.length - 1]); this.resultsPersonas object instance sometimes is not the same instance as in selectedItems
They look the same, but have different references. p1 object is from this.resultsPersonas and p2 is from selectedItems array.
I suggest changing indexOf to findIndex or filter functions.
The text was updated successfully, but these errors were encountered:
After selecting a few people from WebPart properties pane some of them are not retrieved back although they are displayed correctly in the picker control.
Found bugged line (266 in PropertyFieldPeoplePickerHost.tsx)
var index: number = this.resultsPersonas.indexOf(selectedItems[selectedItems.length - 1]);
this.resultsPersonas object instance sometimes is not the same instance as in selectedItems
They look the same, but have different references. p1 object is from this.resultsPersonas and p2 is from selectedItems array.
I suggest changing indexOf to findIndex or filter functions.
The text was updated successfully, but these errors were encountered: