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>
|
</Link>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
if (text.startsWith('@')) {
|
if (text.startsWith?.('@')) {
|
||||||
return (
|
return (
|
||||||
<UserPopover name={text.replace('@', '')}>
|
<UserPopover name={text.replace('@', '')}>
|
||||||
<Link
|
<Link
|
||||||
|
Loading…
x
Reference in New Issue
Block a user