Skip to content

Commit 82a1ea9

Browse files
scopsycursoragent
andauthored
fix(dashboard): Resolve chat preview undefined length error fixes NV-6280 (#8746)
Co-authored-by: Cursor Agent <[email protected]>
1 parent 1f3fac1 commit 82a1ea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/dashboard/src/components/workflow-editor/steps/chat/chat-preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const ChatPreview = ({
1515
variant?: 'mini' | 'default';
1616
}) => {
1717
const isValidChatPreview =
18-
previewData?.result.type === ChannelTypeEnum.CHAT && previewData?.result.preview.body.length > 0;
18+
previewData?.result.type === ChannelTypeEnum.CHAT && previewData?.result.preview.body?.length > 0;
1919
const body = isValidChatPreview ? ((previewData?.result.preview as ChatRenderOutput)?.body ?? '') : '';
2020

2121
return (

0 commit comments

Comments
 (0)