microsoftgraph / microsoft-graph-toolkit

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

[BUG] Intermittent Uncaught TypeError in TeamsChannelPicker Component #2665

Closed FNZhao closed 8 months ago

FNZhao commented 1 year ago

Describe the bug I am encountering an intermittent issue with the TeamsChannelPicker component where an Uncaught TypeError is thrown occasionally. The error message indicates an attempt to access the 'content' property of an undefined object within the component. This issue occurs sporadically when rendering the component.

To Reproduce Steps to reproduce the behavior:

  1. Import and render the TeamsChannelPicker component in application.
  2. Occasionally, observe the browser console for error messages when the Uncaught TypeError is thrown.

Expected behavior The TeamsChannelPicker component should render consistently without errors and display the expected behavior according to the provided configuration, regardless of how often the component is used.

Screenshots

Screenshot 2023-08-14 at 10 21 20 PM
sebastienlevert commented 1 year ago

Can you provide more details:

Thanks!

FNZhao commented 1 year ago

I'm using the react-contoso sample. https://github.com/microsoftgraph/microsoft-graph-toolkit/tree/main/samples/react-contoso I encountered this issue when I quickly navigated to the 'Channel Files' page immediately after refreshing the webpage.

Screenshot 2023-08-15 at 9 21 19 PM