Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit c7adcb4

Browse files
committed
Set reactionGroups to [] on optimistically rendered PR review comments
1 parent 229acd5 commit c7adcb4

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/mutations/add-pr-review-comment.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,7 @@ export default (environment, {body, inReplyTo, reviewID, threadID, viewerID, pat
6363
comment.setValue('https://github.com', 'url');
6464
comment.setValue(path, 'path');
6565
comment.setValue(position, 'position');
66-
67-
// Ensure that at least one empty emoji reaction group is present to avoid the reaction picker button "popping in"
68-
const emptyGroup = store.create(`add-pr-review-comment:reaction-group:${placeholderID++}`, 'ReactionGroup');
69-
emptyGroup.setValue('THUMBS_UP', 'content');
70-
const emptyGroupUsers = store.create(`add-pr-review-comment:users:${placeholderID++}`, 'ReactingUserConnection');
71-
emptyGroupUsers.setValue(0, 'totalCount');
72-
emptyGroup.setLinkedRecord(emptyGroupUsers, 'users');
73-
emptyGroup.setValue(false, 'viewerHasReacted');
74-
comment.setLinkedRecords([emptyGroup], 'reactionGroups');
66+
comment.setLinkedRecords([], 'reactionGroups');
7567

7668
let author;
7769
if (viewerID) {

0 commit comments

Comments
 (0)