fix markdown button can't send message

pull/20933/head
hjlarry 11 months ago
parent af83120832
commit a90b3285d5

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