Skip to content

Commit

Permalink
Merge pull request #2863 from thematters/fix/maintainer-tags
Browse files Browse the repository at this point in the history
fix(tags): correct user tags query
  • Loading branch information
robertu7 authored Oct 27, 2022
2 parents be3fbf0 + 3816cee commit fe11cbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/views/User/Tags/UserTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ const UserTags = () => {

// pagination
const user = data?.user
const connectionPath = 'user.tags'
const { edges, pageInfo } = user?.tags || {}
const connectionPath = 'user.maintainedTags'
const { edges, pageInfo } = user?.maintainedTags || {}
const hasSubscriptions = (user?.subscribedCircles.totalCount || 0) > 0

// load next page
Expand Down
2 changes: 1 addition & 1 deletion src/views/User/Tags/gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const USER_TAGS_PUBLIC = gql`
subscribedCircles(input: { first: 0 }) {
totalCount
}
tags(input: { first: 20, after: $after }) {
maintainedTags(input: { first: 20, after: $after }) {
pageInfo {
startCursor
endCursor
Expand Down

1 comment on commit fe11cbf

@vercel
Copy link

@vercel vercel bot commented on fe11cbf Oct 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.