fix: comment reaction mutation (#1768)

This commit is contained in:
Dakshesh Jain 2023-08-02 14:21:48 +05:30 committed by GitHub
parent 584192faba
commit 87a920174e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,8 @@ const useCommentReaction = (
mutateCommentReactions(
(prevData) =>
prevData?.filter((r) => r.actor !== user?.user?.id || r.reaction !== reaction) || []
prevData?.filter((r) => r.actor !== user?.user?.id || r.reaction !== reaction) || [],
false
);
await reactionService.deleteIssueCommentReaction(