default to empty array for myReactions
This commit is contained in:
parent
ad88f7de7f
commit
f979d23175
1 changed files with 1 additions and 1 deletions
|
@ -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) =>
|
||||
|
|
Loading…
Add table
Reference in a new issue