diff --git a/packages/mgt-components/src/components/mgt-teams-channel-picker/mgt-teams-channel-picker.ts b/packages/mgt-components/src/components/mgt-teams-channel-picker/mgt-teams-channel-picker.ts index d951d309d7..1cf1342671 100644 --- a/packages/mgt-components/src/components/mgt-teams-channel-picker/mgt-teams-channel-picker.ts +++ b/packages/mgt-components/src/components/mgt-teams-channel-picker/mgt-teams-channel-picker.ts @@ -746,7 +746,7 @@ export class MgtTeamsChannelPicker extends MgtTemplatedComponent { for (const team of teams) { const channelsForTeam = responses.get(team.id); // skip over any teams that don't have channels - if (!channelsForTeam.content?.value?.length) continue; + if (!channelsForTeam?.content?.value?.length) continue; this.items.push({ item: team, channels: channelsForTeam.content.value.map(c => ({ item: c }))