[FIX] Update navToRoom press verification (#3974)
This commit is contained in:
parent
f3cf4f1e7f
commit
d9d9d35928
|
@ -18,7 +18,7 @@ const Hashtag = React.memo(({ hashtag, channels, navToRoomInfo, style = [] }: IH
|
||||||
|
|
||||||
const handlePress = () => {
|
const handlePress = () => {
|
||||||
const index = channels?.findIndex(channel => channel.name === hashtag);
|
const index = channels?.findIndex(channel => channel.name === hashtag);
|
||||||
if (index && navToRoomInfo) {
|
if (typeof index !== 'undefined' && navToRoomInfo) {
|
||||||
const navParam = {
|
const navParam = {
|
||||||
t: 'c',
|
t: 'c',
|
||||||
rid: channels?.[index]._id
|
rid: channels?.[index]._id
|
||||||
|
|
Loading…
Reference in New Issue