microsoftgraph / microsoft-graph-toolkit

Authentication Providers and UI components for Microsoft Graph 🦒
https://docs.microsoft.com/graph/toolkit/overview
Other
945 stars 303 forks source link

[BUG] When specifying `fields`, the returned resource is losing its `id` property and thumbails fail #2521

Closed sebastienlevert closed 8 months ago

sebastienlevert commented 1 year ago

Describe the bug Thumbnails rely on the id of the resource. When we specify fields in the component without specifically asking for the id, we lose it from the resource.

<mgt-search-results
    entity-types="driveItem"
    fetch-thumbnail="true"
    fields="PropA,PropB,ProbC"
    query-string="contoso">
  </mgt-search-results>
ghost commented 1 year ago

Hello sebastienlevert, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌