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/DynamicNoteSimple.vue | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

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

diff --git a/packages/frontend/src/components/DynamicNoteSimple.vue b/packages/frontend/src/components/DynamicNoteSimple.vue
index e9d31d04b7..7ca345ccfa 100644
--- a/packages/frontend/src/components/DynamicNoteSimple.vue
+++ b/packages/frontend/src/components/DynamicNoteSimple.vue
@@ -22,11 +22,9 @@ import type SkNoteSimple from '@/components/SkNoteSimple.vue';
 import { prefer } from '@/preferences';
 
 const XNoteSimple = computed(() =>
-	defineAsyncComponent<typeof MkNoteSimple | typeof SkNoteSimple>(() =>
-		prefer.r.noteDesign.value === 'misskey'
-			? import('@/components/MkNoteSimple.vue')
-			: import('@/components/SkNoteSimple.vue'),
-	),
+	prefer.r.noteDesign.value === 'misskey'
+		? defineAsyncComponent(() => import('@/components/MkNoteSimple.vue'))
+		: defineAsyncComponent(() => import('@/components/SkNoteSimple.vue')),
 );
 
 const rootEl = useTemplateRef<ComponentExposed<typeof MkNoteSimple | typeof SkNoteSimple>>('rootEl');
-- 
cgit v1.2.3-freya

