1
0
Fork 0
mirror of synced 2024-09-29 16:51:33 +13:00

Fix crash when adding a link

This commit is contained in:
Andrew Kingston 2020-12-09 14:14:10 +00:00
parent 0d1ab8ce56
commit b5637dbffc

View file

@ -11,7 +11,7 @@
$: target = openInNewTab ? "_blank" : "_self"
</script>
<a href={url} use:linkable {target} use:styleable={$component.styles}>
<a href={url || '/'} use:linkable {target} use:styleable={$component.styles}>
{text}
<slot />
</a>