Skip to content

Commit 6c2b2f2

Browse files
committed
refac
1 parent 2040095 commit 6c2b2f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/components/common/RichTextInput/suggestions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export function getSuggestionRenderer(Component: any, ComponentProps = {}) {
109109
popup = null;
110110

111111
try {
112-
component.$destroy();
112+
component?.$destroy();
113113
} catch (e) {
114114
console.error('Error unmounting component:', e);
115115
}

0 commit comments

Comments
 (0)