From 7c49b633a679d83d1e43fd3f82ecae25123b5ed6 Mon Sep 17 00:00:00 2001
From: Hazelnoot <acomputerdog@gmail.com>
Date: Wed, 2 Apr 2025 21:55:08 -0400
Subject: fix vue errors from dynamic note components

---
 packages/frontend/src/components/DynamicNoteDetailed.vue | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

(limited to 'packages/frontend/src/components/DynamicNoteDetailed.vue')

diff --git a/packages/frontend/src/components/DynamicNoteDetailed.vue b/packages/frontend/src/components/DynamicNoteDetailed.vue
index 996137a7b0..21bf00ccbe 100644
--- a/packages/frontend/src/components/DynamicNoteDetailed.vue
+++ b/packages/frontend/src/components/DynamicNoteDetailed.vue
@@ -21,11 +21,9 @@ import type SkNoteDetailed from '@/components/SkNoteDetailed.vue';
 import { prefer } from '@/preferences';
 
 const XNoteDetailed = computed(() =>
-	defineAsyncComponent(() =>
-		prefer.r.noteDesign.value === 'misskey'
-			? import('@/components/MkNoteDetailed.vue')
-			: import('@/components/SkNoteDetailed.vue'),
-	),
+	prefer.r.noteDesign.value === 'misskey'
+		? defineAsyncComponent(() => import('@/components/MkNoteDetailed.vue'))
+		: defineAsyncComponent(() => import('@/components/SkNoteDetailed.vue')),
 );
 
 const rootEl = useTemplateRef<ComponentExposed<typeof MkNoteDetailed | typeof SkNoteDetailed>>('rootEl');
-- 
cgit v1.2.3-freya

