forked from github/plane
chore: issue reaction response updated (#3951)
This commit is contained in:
committed by
GitHub
parent
d25fcfdd88
commit
cbe5d9a047
@@ -84,7 +84,7 @@ export class IssueReactionStore implements IIssueReactionStore {
|
||||
if (reactions?.[reaction])
|
||||
reactions?.[reaction].map((reactionId) => {
|
||||
const currentReaction = this.getReactionById(reactionId);
|
||||
if (currentReaction && currentReaction.actor_id === userId) _userReactions.push(currentReaction);
|
||||
if (currentReaction && currentReaction.actor === userId) _userReactions.push(currentReaction);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -151,7 +151,7 @@ export class IssueReactionStore implements IIssueReactionStore {
|
||||
) => {
|
||||
try {
|
||||
const userReactions = this.reactionsByUser(issueId, userId);
|
||||
const currentReaction = find(userReactions, { actor_id: userId, reaction: reaction });
|
||||
const currentReaction = find(userReactions, { actor: userId, reaction: reaction });
|
||||
|
||||
if (currentReaction && currentReaction.id) {
|
||||
runInAction(() => {
|
||||
|
||||
Reference in New Issue
Block a user