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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: fix render undefined when text children is empty (#19135)
Good Woodd5ee465bf976
diff --git a/web/app/components/base/markdown.tsx b/web/app/components/base/markdown.tsxindex 6ea84a28425..ca2ec727919 100644--- a/web/app/components/base/markdown.tsx+++ b/web/app/components/base/markdown.tsx@@ -121,7 +121,7 @@ export function PreCode(props: { children: any }) {// visit https://reactjs.org/docs/error-decoder.html?invariant=185 for the full message// or use the non-minified dev environment for full errors and additional helpful warnings.-const CodeBlock: any = memo(({ inline, className, children, ...props }: any) => {+const CodeBlock: any = memo(({ inline, className, children = '', ...props }: any) => {const { theme } = useTheme()const [isSVG, setIsSVG] = useState(true)const match = /language-(\w+)/.exec(className || '')@@ -258,7 +258,7 @@ const Link = ({ node, children, ...props }: any) => {const { onSend } = useChatContext()const hidden_text = decodeURIComponent(node.properties.href.toString().split('abbr:')[1])- return <abbr className="cursor-pointer underline !decoration-primary-700 decoration-dashed" onClick={() => onSend?.(hidden_text)} title={node.children[0]?.value}>{node.children[0]?.value}</abbr>+ return <abbr className="cursor-pointer underline !decoration-primary-700 decoration-dashed" onClick={() => onSend?.(hidden_text)} title={node.children[0]?.value || ''}>{node.children[0]?.value || ''}</abbr>}else {return <a {...props} target="_blank" className="cursor-pointer underline !decoration-primary-700 decoration-dashed">{children || 'Download'}</a>