Skip to content

Commit 189dd88

Browse files
committed
$page.url can be undefined during initial SSR/hydration
1 parent 79e075c commit 189dd88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/src/lib/components/CopyableUrl.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { page } from '$app/stores'
33
import { Button } from 'flowbite-svelte'
44
5-
$: currentUrl = $page.url.href
5+
$: currentUrl = $page?.url?.href ?? ''
66
let copied = false
77
let copyTimeout: ReturnType<typeof setTimeout>
88

0 commit comments

Comments
 (0)