From 6c2b2f2c3e5f4c86273c408b901b5af9b3c7d6d6 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 29 Mar 2026 19:01:53 -0500 Subject: [PATCH] refac --- src/lib/components/common/RichTextInput/suggestions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/common/RichTextInput/suggestions.ts b/src/lib/components/common/RichTextInput/suggestions.ts index 7793b9933..4fc8132b7 100644 --- a/src/lib/components/common/RichTextInput/suggestions.ts +++ b/src/lib/components/common/RichTextInput/suggestions.ts @@ -109,7 +109,7 @@ export function getSuggestionRenderer(Component: any, ComponentProps = {}) { popup = null; try { - component.$destroy(); + component?.$destroy(); } catch (e) { console.error('Error unmounting component:', e); }