AutosuggestPlugin: remove extraneous ?
This commit is contained in:
parent
ab22422aa7
commit
aea2653b19
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue