diff options
| author | dakkar <dakkar@thenautilus.net> | 2025-02-10 11:59:38 +0000 |
|---|---|---|
| committer | dakkar <dakkar@thenautilus.net> | 2025-02-10 11:59:38 +0000 |
| commit | b7f06f28779872f64341942e6afab3090f3beee2 (patch) | |
| tree | 4563781c6ecb9c394a213609c971c9c81ccb80b0 /packages | |
| parent | merge: Add ability to generate vapid keys on frontend (!888) (diff) | |
| download | sharkey-b7f06f28779872f64341942e6afab3090f3beee2.tar.gz sharkey-b7f06f28779872f64341942e6afab3090f3beee2.tar.bz2 sharkey-b7f06f28779872f64341942e6afab3090f3beee2.zip | |
prevent a `ReferenceError`
before, we got:
> ReferenceError: can't access lexical declaration 'followRequestDone'
> before initialization
(of course in non-dev mode, `followRequestDone` had a different name)
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/frontend/src/components/MkNotification.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkNotification.vue b/packages/frontend/src/components/MkNotification.vue index f979287bdd..a910151e42 100644 --- a/packages/frontend/src/components/MkNotification.vue +++ b/packages/frontend/src/components/MkNotification.vue @@ -210,6 +210,8 @@ const props = withDefaults(defineProps<{ const userDetailed: Ref<UserDetailed | null> = ref(null); +const followRequestDone = ref(true); + // watch() is required because computed() doesn't support async. watch(props, async () => { const type = props.notification.type; @@ -242,8 +244,6 @@ const exportEntityName = { userList: i18n.ts.lists, } as const satisfies Record<ExportCompletedNotification['exportedEntity'], string>; -const followRequestDone = ref(true); - const acceptFollowRequest = () => { if (!('user' in props.notification)) return; followRequestDone.value = true; |