- {this.mentionReference.current && (
+ {this.mentionReference?.current && (
{
const modulesConfig = {
...MODULE_CONFIG,
mention: {
- mentionContainer:
- this.mentionReference && this.mentionReference.current,
+ mentionContainer: this.mentionReference?.current,
handleMentionChange: this.handleMentionChange,
storeMentionInstance: this.storeMentionInstance,
},
@@ -123,18 +122,20 @@ export class MattersCommentEditor extends React.Component {
return (
<>
>