fix: markdown button can't send message (#20933)
This commit is contained in:
@@ -14,7 +14,7 @@ const MarkdownButton = ({ node }: any) => {
|
||||
size={size}
|
||||
className={cn('!h-auto min-h-8 select-none whitespace-normal !px-3')}
|
||||
onClick={() => {
|
||||
if (isValidUrl(link)) {
|
||||
if (link && isValidUrl(link)) {
|
||||
window.open(link, '_blank')
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user