microsoft-graph-toolkit icon indicating copy to clipboard operation
microsoft-graph-toolkit copied to clipboard

[BUG] <People peopleQueries={some string array} does not show any avatars (React)

Open Ofer-Gal opened this issue 1 month ago • 0 comments

Describe the bug According to the docs, the peopleQueries should have a string array of email addresses like [ "[email protected]", "[email protected]", "[email protected]", ]

When it is used in the HTML like so: <People peopleQueries={ the stateVar with string array of email addresses } It does not show anything. I tried to use fallbackDetails with an array of [ { mail: "[email protected]", }, { mail: "[email protected]", }, { mail: "[email protected]", }, ]

I got the control to show all users of the tenant. If the wrong type is passed to it it errors with error see below in screenshots

Expected behavior The <People component should show avatars of the selected emails in a string array.

Screenshots

image

Environment (please complete the following information):

  • OS: windows 11
  • Browser [edge]
  • Framework [react]
  • Context [SharePoint]
  • Version [4.2.1]
  • Provider [SharePoint) Additional context

Using <Person in a map of the same array of email addresses, works fine. But <People is more suitable for the app.

Thank you

Ofer-Gal avatar May 08 '24 12:05 Ofer-Gal