diff --git a/src/pages/home/report/ReactionList/PopoverReactionList/index.js b/src/pages/home/report/ReactionList/PopoverReactionList/index.js index 327885249843..6d8ad425bfcd 100644 --- a/src/pages/home/report/ReactionList/PopoverReactionList/index.js +++ b/src/pages/home/report/ReactionList/PopoverReactionList/index.js @@ -26,10 +26,16 @@ function PopoverReactionList(props) { const showReactionList = (event, reactionListAnchor, emojiName, reportActionID) => { setReactionListReportActionID(reportActionID); setReactionListEmojiName(emojiName); + if (!innerReactionListRef.current || !innerReactionListRef.current.hideReactionList) { + return; + } innerReactionListRef.current.showReactionList(event, reactionListAnchor); }; const hideReactionList = () => { + if (!innerReactionListRef.current || !innerReactionListRef.current.hideReactionList) { + return; + } innerReactionListRef.current.hideReactionList(); };