From d1192a5a358910bf04ad094b91edc73009a994fc Mon Sep 17 00:00:00 2001 From: tienifr Date: Tue, 19 Sep 2023 22:53:19 +0700 Subject: [PATCH] fix: regression of 26178 --- .../home/report/ReactionList/PopoverReactionList/index.js | 6 ++++++ 1 file changed, 6 insertions(+) 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(); };