Skip to content

Commit

Permalink
feat: opt in artist screen to new error middleware (#9374)
Browse files Browse the repository at this point in the history
feat: opt in artist screen to new middleware
  • Loading branch information
gkartalis authored Oct 5, 2023
1 parent 7db50ae commit 84004da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/Components/Artist/ArtistHeaderNavRight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const ArtistHeaderNavRight: React.FC<ArtistHeaderNavRightProps> = ({
<FollowButton
haptic
isFollowed={isFollowed}
followCount={data!.counts.follows}
followCount={data?.counts.follows}
onPress={() => setIsFollowed(!isFollowed)}
ml={1}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/app/Scenes/Artist/Artist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ interface ArtistQueryRendererProps {

export const ArtistScreenQuery = graphql`
query ArtistAboveTheFoldQuery($artistID: String!, $input: FilterArtworksInput) {
artist(id: $artistID) {
artist(id: $artistID) @principalField {
...ArtistHeader_artist
...ArtistArtworks_artist @arguments(input: $input)
...ArtistHeaderNavRight_artist
Expand Down
2 changes: 2 additions & 0 deletions src/app/system/relay/middlewares/errorMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const newErrorMiddlewareOptedInQueries = [
"ArtworkAboveTheFoldQuery",
"ArtworkBelowTheFoldQuery",
"SearchQuery",
"ArtistAboveTheFoldQuery",
"ArtistBelowTheFoldQuery",
"InboxQuery",
]

Expand Down

0 comments on commit 84004da

Please sign in to comment.