We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af83120 commit b2ac11bCopy full SHA for b2ac11b
web/app/components/base/markdown-blocks/button.tsx
@@ -14,7 +14,7 @@ const MarkdownButton = ({ node }: any) => {
14
size={size}
15
className={cn('!h-auto min-h-8 select-none whitespace-normal !px-3')}
16
onClick={() => {
17
- if (isValidUrl(link)) {
+ if (link && isValidUrl(link)) {
18
window.open(link, '_blank')
19
return
20
}
0 commit comments