Skip to content

Commit 118a2bb

Browse files
committed
Fix unknown type access on mgt props
Signed-off-by: Musale Martin <[email protected]>
1 parent ce3cd6a commit 118a2bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/react-chat/src/components/ChatListTemplate/ChatListTemplate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Chat } from '@microsoft/microsoft-graph-types';
44
import ChatItem, { ChatInteractionProps } from '../ChatItem/ChatItem';
55

66
const ChatListTemplate = (props: MgtTemplateProps & ChatInteractionProps) => {
7-
const { value } = props.dataContext;
7+
const { value } = props.dataContext as { value: Chat[] };
88
const chats: Chat[] = value;
99
// Select a default chat to display
1010
// props.onSelected(chats[0]);

0 commit comments

Comments
 (0)