Forum Discussion
Cardinal_Night
Oct 08, 2020Brass Contributor
What format should the defaultSelectedUsers be for the pnp PeoplePicker?
I'm struggling to populate the people picker here: <PeoplePicker
context={this.props.context}
personSelectionLimit={3}
groupName={''} // Leave this blank in case you want ...
Cardinal_Night
Oct 08, 2020Brass Contributor
This seems to have worked, but I need to test it thoroughly, if anyone can see any probs with it please let me know:
public compilePanellists = () => {
//@ts-ignore
panellists.flat();
this.setState({
Panellists: panellists
}, () => {
console.log(this.state.Panellists);
});
}