Skip to content

Commit

Permalink
Merge pull request #487 from cofacts/fix-downvote
Browse files Browse the repository at this point in the history
Fix downvote dialog by proper null handling
  • Loading branch information
MrOrz committed May 13, 2022
2 parents 5326cca + 149ab49 commit affe465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/ArticleCategories/DownVoteDialog.js
Expand Up @@ -48,7 +48,7 @@ function DownVoteDialog({
});

const downVoteFeedbacks = (
data.GetArticle?.articleCategories.find(ac => ac.categoryId === categoryId)
data?.GetArticle?.articleCategories.find(ac => ac.categoryId === categoryId)
?.feedbacks ?? []
).filter(({ vote, comment }) => vote === 'DOWNVOTE' && comment);

Expand Down

0 comments on commit affe465

Please sign in to comment.