default to empty array for myReactions

This commit is contained in:
Sean Yesmunt 2020-09-29 15:28:50 -04:00
parent ad88f7de7f
commit f979d23175

View file

@ -96,7 +96,7 @@ export const makeSelectCommentIdsForUri = (uri: string) =>
export const makeSelectMyReactionsForComment = (commentId: string) => export const makeSelectMyReactionsForComment = (commentId: string) =>
createSelector(selectState, state => { createSelector(selectState, state => {
return state.myReactsByCommentId[commentId]; return state.myReactsByCommentId[commentId] || [];
}); });
export const makeSelectOthersReactionsForComment = (commentId: string) => export const makeSelectOthersReactionsForComment = (commentId: string) =>