diff --git a/src/components/Mention/suggestion.js b/src/components/Mention/suggestion.js index 0985118a2c9..6bbf3aa0d61 100644 --- a/src/components/Mention/suggestion.js +++ b/src/components/Mention/suggestion.js @@ -36,7 +36,7 @@ export default ({ session, params }) => ({ }, command: ({ editor, range, props }) => { - if (params.emitMention) { + if (params?.emitMention) { params.emitMention({ props }) } else { emitMention({