diff --git a/samples/react-chat/src/components/ChatListTemplate/ChatListTemplate.tsx b/samples/react-chat/src/components/ChatListTemplate/ChatListTemplate.tsx index dc219a1220..1087995bdc 100644 --- a/samples/react-chat/src/components/ChatListTemplate/ChatListTemplate.tsx +++ b/samples/react-chat/src/components/ChatListTemplate/ChatListTemplate.tsx @@ -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]);