Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: button rendering when using streaming (#9957)

crazywoolade850262b863
diff --git a/web/app/components/base/markdown.tsx b/web/app/components/base/markdown.tsx
index 33ff23d3b71..dde4bcf7867 100644
--- a/web/app/components/base/markdown.tsx
+++ b/web/app/components/base/markdown.tsx
@@ -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'