Skip to content

Commit b2ac11b

Browse files
authored
fix: markdown button can't send message (langgenius#20933)
1 parent af83120 commit b2ac11b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/app/components/base/markdown-blocks/button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const MarkdownButton = ({ node }: any) => {
1414
size={size}
1515
className={cn('!h-auto min-h-8 select-none whitespace-normal !px-3')}
1616
onClick={() => {
17-
if (isValidUrl(link)) {
17+
if (link && isValidUrl(link)) {
1818
window.open(link, '_blank')
1919
return
2020
}

0 commit comments

Comments
 (0)