Skip to content

Commit 9dc5f19

Browse files
authored
Merge pull request #23845 from tienifr/fix/23811
fix: 23811 handle mentions renderer not receiving props
2 parents 0f40047 + be55d5e commit 9dc5f19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/HTMLEngineProvider/HTMLRenderers/MentionUserRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function MentionUserRenderer(props) {
3232
const defaultRendererProps = _.omit(props, ['TDefaultRenderer', 'style']);
3333

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

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

0 commit comments

Comments
 (0)