From f6d2feade8ac02ce816526368903aaa8be22e0dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 18 Jan 2023 16:26:01 +0100 Subject: [PATCH] fixup! refactor: Allow to pass custom items/emit to mentions plugin --- src/components/Mention/suggestion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({