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
1 changed files with 1 additions and 1 deletions

View File

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