[WEB-4025] fix: external user comment and reaction (#7692)
* chore: reactions types updated * fix: external user comments * fix: external user reactions * chore: added display name for actor * chore: merge conflicts * chore: updated the created_by and updated_by --------- Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
This commit is contained in:
parent
260d9a053d
commit
56cd0fc445
6 changed files with 42 additions and 19 deletions
|
|
@ -85,7 +85,9 @@ export const IssueCommentReaction: FC<TIssueCommentReaction> = observer((props)
|
|||
const reactionUsers = (reactionIds?.[reaction] || [])
|
||||
.map((reactionId) => {
|
||||
const reactionDetails = getCommentReactionById(reactionId);
|
||||
return reactionDetails ? getUserDetails(reactionDetails.actor)?.display_name : null;
|
||||
return reactionDetails
|
||||
? getUserDetails(reactionDetails?.actor)?.display_name || reactionDetails?.display_name
|
||||
: null;
|
||||
})
|
||||
.filter((displayName): displayName is string => !!displayName);
|
||||
const formattedUsers = formatTextList(reactionUsers);
|
||||
|
|
|
|||
|
|
@ -85,7 +85,9 @@ export const IssueReaction: FC<TIssueReaction> = observer((props) => {
|
|||
const reactionUsers = (reactionIds?.[reaction] || [])
|
||||
.map((reactionId) => {
|
||||
const reactionDetails = getReactionById(reactionId);
|
||||
return reactionDetails ? getUserDetails(reactionDetails.actor)?.display_name : null;
|
||||
return reactionDetails
|
||||
? getUserDetails(reactionDetails?.actor)?.display_name || reactionDetails?.display_name
|
||||
: null;
|
||||
})
|
||||
.filter((displayName): displayName is string => !!displayName);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue