1
0
Fork 0
mirror of synced 2024-07-04 05:50:57 +12:00

Fix crash when adding a link

This commit is contained in:
Andrew Kingston 2020-12-09 14:14:10 +00:00
parent fba15e6d70
commit 1188a96877

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>