AutosuggestPlugin: remove extraneous `?`

environments/review-fix-double-v0jtu2/deployments/4051
Alex Gleason 1 year ago
parent ab22422aa7
commit aea2653b19
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -325,7 +325,7 @@ const AutosuggestPlugin = ({
const acct = selectAccount(getState(), suggestion)!.acct;
const result = (node as TextNode).splitText(offset, offset + matchingString.length);
const textNode = result[1] ?? result[0];
const mentionNode = textNode?.replace($createMentionNode(`@${acct}`));
const mentionNode = textNode.replace($createMentionNode(`@${acct}`));
mentionNode.insertAfter(new TextNode(' '));
mentionNode.selectNext();
}

Loading…
Cancel
Save