fix 'startsWith' call on non-string
This commit is contained in:
parent
bc2155c7aa
commit
111053006a
@ -197,7 +197,7 @@ export default memo(function Text ({ rel, imgproxyUrls, children, tab, itemId, o
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
if (text.startsWith('@')) {
|
||||
if (text.startsWith?.('@')) {
|
||||
return (
|
||||
<UserPopover name={text.replace('@', '')}>
|
||||
<Link
|
||||
|
Loading…
x
Reference in New Issue
Block a user