Skip to content

Commit

Permalink
Merge pull request #23845 from tienifr/fix/23811
Browse files Browse the repository at this point in the history
fix: 23811 handle mentions renderer not receiving props
  • Loading branch information
puneetlath authored Aug 1, 2023
2 parents 0f40047 + be55d5e commit 9dc5f19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function MentionUserRenderer(props) {
const defaultRendererProps = _.omit(props, ['TDefaultRenderer', 'style']);

// We need to remove the leading @ from data as it is not part of the login
const loginWithoutLeadingAt = props.tnode.data.slice(1);
const loginWithoutLeadingAt = props.tnode.data ? props.tnode.data.slice(1) : '';

const accountID = _.first(PersonalDetailsUtils.getAccountIDsByLogins([loginWithoutLeadingAt]));

Expand Down

0 comments on commit 9dc5f19

Please sign in to comment.