fix: markdown button can't send message (#20933)

pull/20957/head
非法操作 8 months ago committed by GitHub
parent af83120832
commit b2ac11bc47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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
}

Loading…
Cancel
Save