fix: markdown button can't send message (#20933)
This commit is contained in:
parent
af83120832
commit
b2ac11bc47
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ const MarkdownButton = ({ node }: any) => {
|
||||||
size={size}
|
size={size}
|
||||||
className={cn('!h-auto min-h-8 select-none whitespace-normal !px-3')}
|
className={cn('!h-auto min-h-8 select-none whitespace-normal !px-3')}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (isValidUrl(link)) {
|
if (link && isValidUrl(link)) {
|
||||||
window.open(link, '_blank')
|
window.open(link, '_blank')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue