Skip to content

Commit

Permalink
fix: 23811 handle mentions renderer not receiving props
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Jul 29, 2023
1 parent eb02006 commit be55d5e
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 be55d5e

Please sign in to comment.