Skip to content

Commit

Permalink
fixup! refactor: Allow to pass custom items/emit to mentions plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr authored and mejo- committed Jan 19, 2023
1 parent 220fe25 commit f6d2fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Mention/suggestion.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default ({ session, params }) => ({
},

command: ({ editor, range, props }) => {
if (params.emitMention) {
if (params?.emitMention) {
params.emitMention({ props })
} else {
emitMention({
Expand Down

0 comments on commit f6d2fea

Please sign in to comment.