Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

fix mention component

Nevo David6aa5bf35910e
diff --git a/apps/frontend/src/components/new-launch/mention.component.tsx b/apps/frontend/src/components/new-launch/mention.component.tsx
index 2ff66a167..12bb011df 100644
--- a/apps/frontend/src/components/new-launch/mention.component.tsx
+++ b/apps/frontend/src/components/new-launch/mention.component.tsx
@@ -117,6 +117,10 @@ const MentionList: FC = (props: any) => {
};
const updatePosition = (editor: any, element: any) => {
+ if (!editor?.view || !element) {
+ return;
+ }
+
const virtualElement = {
getBoundingClientRect: () =>
posToDOMRect(