From f979d231751817c90587e81bb1ee4648d8968d96 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 29 Sep 2020 15:28:50 -0400 Subject: [PATCH] default to empty array for myReactions --- ui/redux/selectors/comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/redux/selectors/comments.js b/ui/redux/selectors/comments.js index 338b923b6..d01abbf4f 100644 --- a/ui/redux/selectors/comments.js +++ b/ui/redux/selectors/comments.js @@ -96,7 +96,7 @@ export const makeSelectCommentIdsForUri = (uri: string) => export const makeSelectMyReactionsForComment = (commentId: string) => createSelector(selectState, state => { - return state.myReactsByCommentId[commentId]; + return state.myReactsByCommentId[commentId] || []; }); export const makeSelectOthersReactionsForComment = (commentId: string) =>