Skip to content

Commit

Permalink
Merge pull request #4813 from thematters/hotfix/delete-article-commen…
Browse files Browse the repository at this point in the history
…t-error

*Master* Hotfix/delete article comment error
  • Loading branch information
wlliaml authored Aug 30, 2024
2 parents 7f86788 + 29d44d8 commit c9381ec
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const DELETE_COMMENT = gql`
id
state
node {
id
... on Moment {
id
commentCount
Expand Down Expand Up @@ -63,7 +64,10 @@ const DeleteCommentDialog = ({
commentCount: node.commentCount - 1,
__typename: 'Moment',
}
: {},
: {
id: node?.id || '',
__typename: 'Article',
},
__typename: 'Comment',
},
},
Expand Down

0 comments on commit c9381ec

Please sign in to comment.