Skip to content

Commit

Permalink
fix: button rendering when using streaming (#9957)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywoola authored Oct 28, 2024
1 parent de57af4 commit de85026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/app/components/base/markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ const MarkdownButton = ({ node }: any) => {
className={cn('!h-8 !px-3 select-none')}
onClick={() => onSend?.(message)}
>
<span className='text-[13px]'>{node.children[0].value}</span>
<span className='text-[13px]'>{node.children[0]?.value || ''}</span>
</Button>
}
MarkdownButton.displayName = 'MarkdownButton'
Expand Down

0 comments on commit de85026

Please sign in to comment.