From 8fc6148a3bc7173142b62f920955dcc611dcc011 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 2 Dec 2022 09:59:09 +0000 Subject: [PATCH] fix: copy link from route object resolves #289 --- components/status/StatusActionsMore.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/status/StatusActionsMore.vue b/components/status/StatusActionsMore.vue index e8488f28..0dab1a7e 100644 --- a/components/status/StatusActionsMore.vue +++ b/components/status/StatusActionsMore.vue @@ -37,7 +37,7 @@ const toggleTranslation = async () => { } const copyLink = async (status: Status) => { - const url = getStatusPermalinkRoute(status) + const url = getStatusPermalinkRoute(status)?.href if (url) await clipboard.copy(`${location.origin}${url}`) }