Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
RocketChat
Rocket.Chat.ReactNative
Commits
a200e970
Unverified
Commit
a200e970
authored
Feb 17, 2020
by
Diego Mello
Committed by
GitHub
Feb 17, 2020
Browse files
[FIX] Prevent reaction map error (#1743)
parent
677b2881
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/containers/message/Reactions.js
View file @
a200e970
...
...
@@ -56,7 +56,7 @@ const Reaction = React.memo(({
const
Reactions
=
React
.
memo
(({
reactions
,
user
,
baseUrl
,
onReactionPress
,
reactionInit
,
onReactionLongPress
,
getCustomEmoji
,
theme
})
=>
{
if
(
!
reactions
||
reactions
.
length
===
0
)
{
if
(
!
Array
.
isArray
(
reactions
)
||
reactions
.
length
===
0
)
{
return
null
;
}
return
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment