Skip to content

Commit

Permalink
Fix unknown type access on mgt props
Browse files Browse the repository at this point in the history
Signed-off-by: Musale Martin <martinmusale@microsoft.com>
  • Loading branch information
musale committed Sep 28, 2023
1 parent ce3cd6a commit 118a2bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Chat } from '@microsoft/microsoft-graph-types';
import ChatItem, { ChatInteractionProps } from '../ChatItem/ChatItem';

const ChatListTemplate = (props: MgtTemplateProps & ChatInteractionProps) => {
const { value } = props.dataContext;
const { value } = props.dataContext as { value: Chat[] };
const chats: Chat[] = value;
// Select a default chat to display
// props.onSelected(chats[0]);
Expand Down

0 comments on commit 118a2bb

Please sign in to comment.